referrerpolicy=no-referrer-when-downgrade
polkadot_node_network_protocol

Type Alias VersionedCollationProtocol

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

All supported versions of the collation protocol message.

Aliased Type§

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

Variants§

§

V1(CollationProtocol)

V1 type.

§

V2(CollationProtocol)

V2 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<CollationProtocols<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> Clone for CollationProtocols<V1, V2>

Source§

fn clone(&self) -> CollationProtocols<V1, V2>

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> Debug for CollationProtocols<V1, V2>

Source§

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

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

impl<V1: PartialEq, V2: PartialEq> PartialEq for CollationProtocols<V1, V2>

Source§

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

Source§

impl<V1, V2> StructuralPartialEq for CollationProtocols<V1, V2>