pub enum MessagingProtocolVersion {
V1,
}
Expand description
Enum representing different versions of the Diem network protocol. These
should be listed from old to new, old having the smallest value. We derive
PartialOrd
since nodes need to find highest intersecting protocol version.
Variants§
V1
Trait Implementations§
source§impl Arbitrary for MessagingProtocolVersion
impl Arbitrary for MessagingProtocolVersion
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = fn() -> MessagingProtocolVersion
type Strategy = fn() -> MessagingProtocolVersion
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
source§impl Clone for MessagingProtocolVersion
impl Clone for MessagingProtocolVersion
source§fn clone(&self) -> MessagingProtocolVersion
fn clone(&self) -> MessagingProtocolVersion
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 MessagingProtocolVersion
impl Debug for MessagingProtocolVersion
source§impl<'de> Deserialize<'de> for MessagingProtocolVersion
impl<'de> Deserialize<'de> for MessagingProtocolVersion
source§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
source§impl Display for MessagingProtocolVersion
impl Display for MessagingProtocolVersion
source§impl Hash for MessagingProtocolVersion
impl Hash for MessagingProtocolVersion
source§impl Ord for MessagingProtocolVersion
impl Ord for MessagingProtocolVersion
source§fn cmp(&self, other: &MessagingProtocolVersion) -> Ordering
fn cmp(&self, other: &MessagingProtocolVersion) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<MessagingProtocolVersion> for MessagingProtocolVersion
impl PartialEq<MessagingProtocolVersion> for MessagingProtocolVersion
source§fn eq(&self, other: &MessagingProtocolVersion) -> bool
fn eq(&self, other: &MessagingProtocolVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MessagingProtocolVersion> for MessagingProtocolVersion
impl PartialOrd<MessagingProtocolVersion> for MessagingProtocolVersion
source§fn partial_cmp(&self, other: &MessagingProtocolVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &MessagingProtocolVersion) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for MessagingProtocolVersion
impl Serialize for MessagingProtocolVersion
impl Copy for MessagingProtocolVersion
impl Eq for MessagingProtocolVersion
impl StructuralEq for MessagingProtocolVersion
impl StructuralPartialEq for MessagingProtocolVersion
Auto Trait Implementations§
impl RefUnwindSafe for MessagingProtocolVersion
impl Send for MessagingProtocolVersion
impl Sync for MessagingProtocolVersion
impl Unpin for MessagingProtocolVersion
impl UnwindSafe for MessagingProtocolVersion
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PersistableConfig for Twhere
T: Serialize + DeserializeOwned + ?Sized,
impl<T> PersistableConfig for Twhere T: Serialize + DeserializeOwned + ?Sized,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> Serialize for Twhere
T: Serialize + ?Sized,
impl<T> Serialize for Twhere T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.