referrerpolicy=no-referrer-when-downgrade
polkadot_node_network_protocol

Type Alias BitfieldDistributionMessage

Source
pub type BitfieldDistributionMessage = ValidationProtocols<BitfieldDistributionMessage>;
Expand description

Version-annotated messages used by the bitfield distribution subsystem.

Aliased Type§

enum BitfieldDistributionMessage {
    V3(BitfieldDistributionMessage),
}

Variants§

Trait Implementations§

Source§

impl<'a> TryFrom<&'a ValidationProtocols<ValidationProtocol>> for BitfieldDistributionMessage

Source§

type Error = WrongVariant

The type returned in the event of a conversion error.
Source§

fn try_from( x: &'a VersionedValidationProtocol, ) -> Result<BitfieldDistributionMessage, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ValidationProtocols<ValidationProtocol>> for BitfieldDistributionMessage

Source§

type Error = WrongVariant

The type returned in the event of a conversion error.
Source§

fn try_from( x: VersionedValidationProtocol, ) -> Result<BitfieldDistributionMessage, Self::Error>

Performs the conversion.
Source§

impl<V3: Clone> Clone for ValidationProtocols<V3>

Source§

fn clone(&self) -> ValidationProtocols<V3>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<V3: Debug> Debug for ValidationProtocols<V3>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<V3: PartialEq> PartialEq for ValidationProtocols<V3>

Source§

fn eq(&self, other: &ValidationProtocols<V3>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<V3: Eq> Eq for ValidationProtocols<V3>

Source§

impl<V3> StructuralPartialEq for ValidationProtocols<V3>