Enum tor_netdoc::doc::netstatus::NetstatusKwd
source · #[non_exhaustive]pub enum NetstatusKwd {
Show 43 variants
NETWORK_STATUS_VERSION,
VOTE_STATUS,
CONSENSUS_METHODS,
CONSENSUS_METHOD,
PUBLISHED,
VALID_AFTER,
FRESH_UNTIL,
VALID_UNTIL,
VOTING_DELAY,
CLIENT_VERSIONS,
SERVER_VERSIONS,
KNOWN_FLAGS,
FLAG_THRESHOLDS,
RECOMMENDED_CLIENT_PROTOCOLS,
REQUIRED_CLIENT_PROTOCOLS,
RECOMMENDED_RELAY_PROTOCOLS,
REQUIRED_RELAY_PROTOCOLS,
PARAMS,
BANDWIDTH_FILE_HEADERS,
BANDWIDTH_FILE_DIGEST,
SHARED_RAND_PREVIOUS_VALUE,
SHARED_RAND_CURRENT_VALUE,
DIR_SOURCE,
CONTACT,
LEGACY_DIR_KEY,
SHARED_RAND_PARTICIPATE,
SHARED_RAND_COMMIT,
VOTE_DIGEST,
DIR_KEY_CERTIFICATE_VERSION,
RS_R,
RS_A,
RS_S,
RS_V,
RS_PR,
RS_W,
RS_P,
RS_M,
RS_ID,
DIRECTORY_FOOTER,
BANDWIDTH_WEIGHTS,
DIRECTORY_SIGNATURE,
UNRECOGNIZED,
ANN_UNRECOGNIZED,
}
Expand description
Keywords that can be used in votes and consensuses.
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.
NETWORK_STATUS_VERSION
VOTE_STATUS
CONSENSUS_METHODS
CONSENSUS_METHOD
PUBLISHED
VALID_AFTER
FRESH_UNTIL
VALID_UNTIL
VOTING_DELAY
CLIENT_VERSIONS
SERVER_VERSIONS
KNOWN_FLAGS
FLAG_THRESHOLDS
RECOMMENDED_CLIENT_PROTOCOLS
REQUIRED_CLIENT_PROTOCOLS
RECOMMENDED_RELAY_PROTOCOLS
REQUIRED_RELAY_PROTOCOLS
PARAMS
BANDWIDTH_FILE_HEADERS
BANDWIDTH_FILE_DIGEST
SHARED_RAND_PREVIOUS_VALUE
SHARED_RAND_CURRENT_VALUE
DIR_SOURCE
CONTACT
LEGACY_DIR_KEY
SHARED_RAND_PARTICIPATE
SHARED_RAND_COMMIT
VOTE_DIGEST
DIR_KEY_CERTIFICATE_VERSION
RS_R
RS_A
RS_S
RS_V
RS_PR
RS_W
RS_P
RS_M
RS_ID
DIRECTORY_FOOTER
BANDWIDTH_WEIGHTS
DIRECTORY_SIGNATURE
UNRECOGNIZED
ANN_UNRECOGNIZED
Trait Implementations§
source§impl Clone for NetstatusKwd
impl Clone for NetstatusKwd
source§fn clone(&self) -> NetstatusKwd
fn clone(&self) -> NetstatusKwd
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 NetstatusKwd
impl Debug for NetstatusKwd
source§impl Hash for NetstatusKwd
impl Hash for NetstatusKwd
source§impl PartialEq for NetstatusKwd
impl PartialEq for NetstatusKwd
source§fn eq(&self, other: &NetstatusKwd) -> bool
fn eq(&self, other: &NetstatusKwd) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for NetstatusKwd
impl Eq for NetstatusKwd
impl StructuralPartialEq for NetstatusKwd
Auto Trait Implementations§
impl Freeze for NetstatusKwd
impl RefUnwindSafe for NetstatusKwd
impl Send for NetstatusKwd
impl Sync for NetstatusKwd
impl Unpin for NetstatusKwd
impl UnwindSafe for NetstatusKwd
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more