Enum tor_dirmgr::DirEvent [−][src]
#[non_exhaustive]
pub enum DirEvent {
NewConsensus,
NewDescriptors,
}
Expand description
An event that a DirMgr can broadcast to indicate that a change in the status of its directory.
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.
NewConsensus
A new consensus has been received, and has enough information to be used.
NewDescriptors
New descriptors have been received for the latest consensus.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DirEvent
impl UnwindSafe for DirEvent
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more