Enum diem_config::network_id::NetworkId [−][src]
#[repr(u8)]
pub enum NetworkId {
Validator,
Vfn,
Public,
}Expand description
A representation of the network being used in communication.
There should only be one of each NetworkId used for a single node (except for NetworkId::Public),
and handshakes should verify that the NetworkId being used is the same during a handshake,
to effectively ensure communication is restricted to a network. Network should be checked that
it is not the DEFAULT_NETWORK
Variants
Implementations
Roles for a prioritization of relative upstreams
Roles for a prioritization of relative downstreams
Trait Implementations
Default needed to handle downstream structs that use Default
Deserialize this value from the given Serde deserializer. Read more
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 NetworkId
impl UnwindSafe for NetworkId
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.