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