pub type CollatorProtocolMessage = Versioned<CollatorProtocolMessage, CollatorProtocolMessage>;
Expand description

Version-annotated messages used by the bitfield distribution subsystem.

Aliased Type§

enum CollatorProtocolMessage {
    V1(CollatorProtocolMessage),
    V2(CollatorProtocolMessage),
    V3(CollatorProtocolMessage),
}

Variants§

Trait Implementations§

source§

impl<'a> TryFrom<&'a Versioned<CollationProtocol, CollationProtocol>> for CollatorProtocolMessage

§

type Error = WrongVariant

The type returned in the event of a conversion error.
source§

fn try_from( x: &'a VersionedCollationProtocol, ) -> Result<CollatorProtocolMessage, Self::Error>

Performs the conversion.
source§

impl TryFrom<Versioned<CollationProtocol, CollationProtocol>> for CollatorProtocolMessage

§

type Error = WrongVariant

The type returned in the event of a conversion error.
source§

fn try_from( x: VersionedCollationProtocol, ) -> Result<CollatorProtocolMessage, Self::Error>

Performs the conversion.
source§

impl<V1: Clone, V2: Clone, V3: Clone> Clone for Versioned<V1, V2, V3>

source§

fn clone(&self) -> Versioned<V1, V2, V3>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<V1: Debug, V2: Debug, V3: Debug> Debug for Versioned<V1, V2, V3>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<V1: PartialEq, V2: PartialEq, V3: PartialEq> PartialEq for Versioned<V1, V2, V3>

source§

fn eq(&self, other: &Versioned<V1, V2, V3>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<V1: Eq, V2: Eq, V3: Eq> Eq for Versioned<V1, V2, V3>

source§

impl<V1, V2, V3> StructuralPartialEq for Versioned<V1, V2, V3>