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

Version-annotated messages used by the bitfield distribution subsystem.

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.