referrerpolicy=no-referrer-when-downgrade
polkadot_node_network_protocol

Type Alias ApprovalDistributionMessage

Source
pub type ApprovalDistributionMessage = Versioned<ApprovalDistributionMessage, ApprovalDistributionMessage, ApprovalDistributionMessage>;
Expand description

Version-annotated messages used by the approval distribution subsystem.

Aliased Type§

enum ApprovalDistributionMessage {
    V1(ApprovalDistributionMessage),
    V2(ApprovalDistributionMessage),
    V3(ApprovalDistributionMessage),
}

Variants§

Trait Implementations§

Source§

impl<'a> TryFrom<&'a Versioned<ValidationProtocol, ValidationProtocol, ValidationProtocol>> for ApprovalDistributionMessage

Source§

type Error = WrongVariant

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

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

Performs the conversion.
Source§

impl TryFrom<Versioned<ValidationProtocol, ValidationProtocol, ValidationProtocol>> for ApprovalDistributionMessage

Source§

type Error = WrongVariant

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

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

Performs the conversion.
Source§

impl<V1: Clone, V2: Clone, V3: Clone> Clone for Versioned<V1, V2, V3>

Source§

fn clone(&self) -> Versioned<V1, V2, 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<V1: Debug, V2: Debug, V3: Debug> Debug for Versioned<V1, V2, V3>

Source§

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

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

impl<V1: PartialEq, V2: PartialEq, V3: PartialEq> PartialEq for Versioned<V1, V2, V3>

Source§

fn eq(&self, other: &Versioned<V1, V2, 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<V1: Eq, V2: Eq, V3: Eq> Eq for Versioned<V1, V2, V3>

Source§

impl<V1, V2, V3> StructuralPartialEq for Versioned<V1, V2, V3>