#[non_exhaustive]#[repr(usize)]pub enum TorEventKind {
Empty = 0,
}
Expand description
An opaque type describing a variant of TorEvent
.
Variants of this enum have the same name as variants of TorEvent
, but no data. This
is useful for functions like TorEventReceiver::subscribe
, which lets you choose which
variants you want to receive.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty = 0
Identifier for TorEvent::Empty
.
Trait Implementations§
Source§impl Clone for TorEventKind
impl Clone for TorEventKind
Source§fn clone(&self) -> TorEventKind
fn clone(&self) -> TorEventKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TorEventKind
impl Debug for TorEventKind
Source§impl Hash for TorEventKind
impl Hash for TorEventKind
Source§impl Ord for TorEventKind
impl Ord for TorEventKind
Source§fn cmp(&self, other: &TorEventKind) -> Ordering
fn cmp(&self, other: &TorEventKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TorEventKind
impl PartialEq for TorEventKind
Source§impl PartialOrd for TorEventKind
impl PartialOrd for TorEventKind
impl Copy for TorEventKind
impl Eq for TorEventKind
impl StructuralPartialEq for TorEventKind
Auto Trait Implementations§
impl Freeze for TorEventKind
impl RefUnwindSafe for TorEventKind
impl Send for TorEventKind
impl Sync for TorEventKind
impl Unpin for TorEventKind
impl UnwindSafe for TorEventKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more