Enum tor_netdoc::doc::netstatus::ConsensusFlavor
source · [−]#[non_exhaustive]
pub enum ConsensusFlavor {
Microdesc,
Ns,
}
Expand description
A recognized ‘flavor’ of consensus document.
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.
Microdesc
A “microdesc”-flavored consensus. This is the one that clients and relays use today.
Ns
A “networkstatus”-flavored consensus. It’s used for historical and network-health purposes. Instead of listing microdescriptor digests, it lists digests of full relay descriptors.
Implementations
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ConsensusFlavor
impl Send for ConsensusFlavor
impl Sync for ConsensusFlavor
impl Unpin for ConsensusFlavor
impl UnwindSafe for ConsensusFlavor
Blanket Implementations
Mutably borrows from an owned value. Read more