Type Definition polkadot_node_network_protocol::CollatorProtocolMessage
source · pub type CollatorProtocolMessage = Versioned<CollatorProtocolMessage>;
Expand description
Version-annotated messages used by the bitfield distribution subsystem.
Trait Implementations§
source§impl<'a> TryFrom<&'a Versioned<CollationProtocol>> for CollatorProtocolMessage
impl<'a> TryFrom<&'a Versioned<CollationProtocol>> for CollatorProtocolMessage
§type Error = WrongVariant
type Error = WrongVariant
The type returned in the event of a conversion error.
source§fn try_from(
x: &'a VersionedCollationProtocol
) -> Result<CollatorProtocolMessage, Self::Error>
fn try_from(
x: &'a VersionedCollationProtocol
) -> Result<CollatorProtocolMessage, Self::Error>
Performs the conversion.
source§impl TryFrom<Versioned<CollationProtocol>> for CollatorProtocolMessage
impl TryFrom<Versioned<CollationProtocol>> for CollatorProtocolMessage
§type Error = WrongVariant
type Error = WrongVariant
The type returned in the event of a conversion error.
source§fn try_from(
x: VersionedCollationProtocol
) -> Result<CollatorProtocolMessage, Self::Error>
fn try_from(
x: VersionedCollationProtocol
) -> Result<CollatorProtocolMessage, Self::Error>
Performs the conversion.