pub type StatementDistributionMessage = Versioned<StatementDistributionMessage, StatementDistributionMessage, StatementDistributionMessage>;
Expand description
Version-annotated messages used by the statement distribution subsystem.
Aliased Type§
enum StatementDistributionMessage {
V1(StatementDistributionMessage),
V2(StatementDistributionMessage),
V3(StatementDistributionMessage),
}
Variants§
V1(StatementDistributionMessage)
V1 type.
V2(StatementDistributionMessage)
V2 type.
V3(StatementDistributionMessage)
V3 type
Trait Implementations§
source§impl<'a> TryFrom<&'a Versioned<ValidationProtocol, ValidationProtocol, ValidationProtocol>> for StatementDistributionMessage
impl<'a> TryFrom<&'a Versioned<ValidationProtocol, ValidationProtocol, ValidationProtocol>> for StatementDistributionMessage
§type Error = WrongVariant
type Error = WrongVariant
The type returned in the event of a conversion error.
source§fn try_from(
x: &'a VersionedValidationProtocol,
) -> Result<StatementDistributionMessage, Self::Error>
fn try_from( x: &'a VersionedValidationProtocol, ) -> Result<StatementDistributionMessage, Self::Error>
Performs the conversion.
source§impl TryFrom<Versioned<ValidationProtocol, ValidationProtocol, ValidationProtocol>> for StatementDistributionMessage
impl TryFrom<Versioned<ValidationProtocol, ValidationProtocol, ValidationProtocol>> for StatementDistributionMessage
§type Error = WrongVariant
type Error = WrongVariant
The type returned in the event of a conversion error.
source§fn try_from(
x: VersionedValidationProtocol,
) -> Result<StatementDistributionMessage, Self::Error>
fn try_from( x: VersionedValidationProtocol, ) -> Result<StatementDistributionMessage, Self::Error>
Performs the conversion.