Enum tor_netdoc::doc::netstatus::RelayWeight
source · 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.
Implementations§
source§impl RelayWeight
impl RelayWeight
sourcepub fn is_measured(&self) -> bool
pub fn is_measured(&self) -> bool
Return true if this weight is the result of a successful measurement
sourcepub fn is_nonzero(&self) -> bool
pub fn is_nonzero(&self) -> bool
Return true if this weight is nonzero
Trait Implementations§
source§impl Clone for RelayWeight
impl Clone for RelayWeight
source§fn clone(&self) -> RelayWeight
fn clone(&self) -> RelayWeight
Returns a copy 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 RelayWeight
impl Debug for RelayWeight
source§impl Default for RelayWeight
impl Default for RelayWeight
source§fn default() -> RelayWeight
fn default() -> RelayWeight
Returns the “default value” for a type. Read more