pub type BitfieldDistributionMessage = Versioned<BitfieldDistributionMessage, BitfieldDistributionMessage, BitfieldDistributionMessage>;
Expand description
Version-annotated messages used by the bitfield distribution subsystem.
Aliased Type§
enum BitfieldDistributionMessage {
V1(BitfieldDistributionMessage),
V2(BitfieldDistributionMessage),
V3(BitfieldDistributionMessage),
}
Variants§
V1(BitfieldDistributionMessage)
V1 type.
V2(BitfieldDistributionMessage)
V2 type.
V3(BitfieldDistributionMessage)
V3 type
Trait Implementations§
source§impl<'a> TryFrom<&'a Versioned<ValidationProtocol, ValidationProtocol, ValidationProtocol>> for BitfieldDistributionMessage
impl<'a> TryFrom<&'a Versioned<ValidationProtocol, ValidationProtocol, ValidationProtocol>> for BitfieldDistributionMessage
§type Error = WrongVariant
type Error = WrongVariant
The type returned in the event of a conversion error.
source§fn try_from(
x: &'a VersionedValidationProtocol,
) -> Result<BitfieldDistributionMessage, Self::Error>
fn try_from( x: &'a VersionedValidationProtocol, ) -> Result<BitfieldDistributionMessage, Self::Error>
Performs the conversion.
source§impl TryFrom<Versioned<ValidationProtocol, ValidationProtocol, ValidationProtocol>> for BitfieldDistributionMessage
impl TryFrom<Versioned<ValidationProtocol, ValidationProtocol, ValidationProtocol>> for BitfieldDistributionMessage
§type Error = WrongVariant
type Error = WrongVariant
The type returned in the event of a conversion error.
source§fn try_from(
x: VersionedValidationProtocol,
) -> Result<BitfieldDistributionMessage, Self::Error>
fn try_from( x: VersionedValidationProtocol, ) -> Result<BitfieldDistributionMessage, Self::Error>
Performs the conversion.