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.