pub type VersionedValidationProtocol = Versioned<ValidationProtocol, ValidationProtocol, ValidationProtocol>;
Expand description

All supported versions of the validation protocol message.

Aliased Type§

enum VersionedValidationProtocol {
    V1(ValidationProtocol),
    V2(ValidationProtocol),
    V3(ValidationProtocol),
}

Variants§

Trait Implementations§

source§

impl From<ValidationProtocol> for VersionedValidationProtocol

source§

fn from(v1: ValidationProtocol) -> Self

Converts to this type from the input type.
source§

impl From<ValidationProtocol> for VersionedValidationProtocol

source§

fn from(v2: ValidationProtocol) -> Self

Converts to this type from the input type.
source§

impl From<ValidationProtocol> for VersionedValidationProtocol

source§

fn from(v3: ValidationProtocol) -> Self

Converts to this type from the input type.
source§

impl From<Versioned<ApprovalDistributionMessage, ApprovalDistributionMessage, ApprovalDistributionMessage>> for VersionedValidationProtocol

source§

fn from( versioned_from: ApprovalDistributionMessage, ) -> VersionedValidationProtocol

Converts to this type from the input type.
source§

impl From<Versioned<BitfieldDistributionMessage, BitfieldDistributionMessage>> for VersionedValidationProtocol

source§

fn from( versioned_from: BitfieldDistributionMessage, ) -> VersionedValidationProtocol

Converts to this type from the input type.
source§

impl From<Versioned<StatementDistributionMessage, StatementDistributionMessage>> for VersionedValidationProtocol

source§

fn from( versioned_from: StatementDistributionMessage, ) -> VersionedValidationProtocol

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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>