Enum tor_netdoc::doc::netstatus::RelayWeight [−][src]
Expand description
Recognized weight fields on a single relay in a consensus
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.
Unmeasured(u32)
An unmeasured weight for a relay.
Measured(u32)
An measured weight for a relay.
Implementations
Return true if this weight is the result of a successful measurement
Return true if this weight is nonzero
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for RelayWeight
impl Send for RelayWeight
impl Sync for RelayWeight
impl Unpin for RelayWeight
impl UnwindSafe for RelayWeight
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V