CollatorProtocolMessage

Type Alias CollatorProtocolMessage 

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

Version-annotated messages used by the bitfield distribution subsystem.

Aliased Type§

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

Variants§

Trait Implementations§

Source§

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

Source§

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

Source§

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.