WireMessage

Trait WireMessage 

Source
pub trait WireMessage: Into<Payload> {
    const TOPIC: Topics;

    // Provided methods
    fn consensus_header(&self) -> ConsensusHeader { ... }
    fn payload(self) -> Payload { ... }
}

Required Associated Constants§

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl WireMessage for Block

Source§

const TOPIC: Topics = Topics::Block

Source§

impl WireMessage for Transaction

Source§

const TOPIC: Topics = Topics::Tx

Source§

impl WireMessage for Candidate

Source§

const TOPIC: Topics = Topics::Candidate

Source§

impl WireMessage for GetBlocks

Source§

const TOPIC: Topics = Topics::GetBlocks

Source§

impl WireMessage for GetMempool

Source§

const TOPIC: Topics = Topics::GetMempool

Source§

impl WireMessage for GetResource

Source§

const TOPIC: Topics = Topics::GetResource

Source§

impl WireMessage for Inv

Source§

const TOPIC: Topics = Topics::Inv

Source§

impl WireMessage for Quorum

Source§

const TOPIC: Topics = Topics::Quorum

Source§

impl WireMessage for Ratification

Source§

const TOPIC: Topics = Topics::Ratification

Source§

impl WireMessage for Validation

Source§

const TOPIC: Topics = Topics::Validation

Source§

impl WireMessage for ValidationQuorum

Source§

const TOPIC: Topics = Topics::ValidationQuorum

Source§

impl WireMessage for ValidationResult

Source§

const TOPIC: Topics = Topics::Unknown