Type Alias polkadot_node_network_protocol::CollatorProtocolMessage
source · 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§
V1(CollatorProtocolMessage)
V1 type.
V2(CollatorProtocolMessage)
V2 type.
V3(CollatorProtocolMessage)
V3 type
Trait Implementations§
source§impl<'a> TryFrom<&'a Versioned<CollationProtocol, CollationProtocol>> for CollatorProtocolMessage
impl<'a> TryFrom<&'a Versioned<CollationProtocol, 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, CollationProtocol>> for CollatorProtocolMessage
impl TryFrom<Versioned<CollationProtocol, 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.