referrerpolicy=no-referrer-when-downgrade
polkadot_node_network_protocol

Type Alias VersionedCollationProtocol

Source
pub type VersionedCollationProtocol = Versioned<CollationProtocol, CollationProtocol>;
Expand description

All supported versions of the collation protocol message.

Aliased Type§

enum VersionedCollationProtocol {
    V1(CollationProtocol),
    V2(CollationProtocol),
    V3(CollationProtocol),
}

Variants§

§

V1(CollationProtocol)

V1 type.

§

V2(CollationProtocol)

V2 type.

§

V3(CollationProtocol)

V3 type

Trait Implementations§

Source§

impl From<CollationProtocol> for VersionedCollationProtocol

Source§

fn from(v1: CollationProtocol) -> Self

Converts to this type from the input type.
Source§

impl From<CollationProtocol> for VersionedCollationProtocol

Source§

fn from(v2: CollationProtocol) -> Self

Converts to this type from the input type.
Source§

impl From<Versioned<CollatorProtocolMessage, CollatorProtocolMessage>> for VersionedCollationProtocol

Source§

fn from(versioned_from: CollatorProtocolMessage) -> VersionedCollationProtocol

Converts to this type from the input type.
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>