Struct network::protocols::wire::handshake::v1::ProtocolIdSet [−][src]
pub struct ProtocolIdSet(_);Expand description
A compact representation for a set of ProtocolIds. Internally, this is a
bitvec which supports at most 256 bits.
These sets are sent over-the-wire in the initial HandshakeMsg to other
DiemNet peers in order to negotiate the set of common supported protocols for
use on a new DiemNet connection.
Implementations
Iterate over all ProtocolIds, ignoring any that our node version
doesn’t understand or doesn’t yet support.
Find the intersection between two sets of protocols.
Return the union of two sets of protocols.
Returns if the protocol is set.
Insert a new protocol into the set.
Trait Implementations
type Parameters = <BitVec as Arbitrary>::Parameters
type Parameters = <BitVec as Arbitrary>::Parameters
The type of parameters that arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default. Read more
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Creates a value from an iterator. Read more
Creates a value from an iterator. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ProtocolIdSet
impl Send for ProtocolIdSet
impl Sync for ProtocolIdSet
impl Unpin for ProtocolIdSet
impl UnwindSafe for ProtocolIdSet
Blanket Implementations
Mutably borrows from an owned value. Read more
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.