darkfi::net::message

Trait Message

Source
pub trait Message:
    'static
    + Send
    + Sync
    + AsyncDecodable
    + AsyncEncodable {
    const NAME: &'static str;
}
Expand description

Generic message template.

Required Associated Constants§

Source

const NAME: &'static str

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 Message for EventPut

Source§

const NAME: &'static str = "EventGraph::EventPut"

Source§

impl Message for EventRep

Source§

const NAME: &'static str = "EventGraph::EventRep"

Source§

impl Message for EventReq

Source§

const NAME: &'static str = "EventGraph::EventReq"

Source§

impl Message for TipRep

Source§

const NAME: &'static str = "EventGraph::TipRep"

Source§

impl Message for TipReq

Source§

const NAME: &'static str = "EventGraph::TipReq"

Source§

impl Message for Transaction

Source§

const NAME: &'static str = "tx"

Source§

impl Message for AddrsMessage

Source§

const NAME: &'static str = "addr"

Source§

impl Message for GetAddrsMessage

Source§

const NAME: &'static str = "getaddr"

Source§

impl Message for PingMessage

Source§

const NAME: &'static str = "ping"

Source§

impl Message for PongMessage

Source§

const NAME: &'static str = "pong"

Source§

impl Message for VerackMessage

Source§

const NAME: &'static str = "verack"

Source§

impl Message for VersionMessage

Source§

const NAME: &'static str = "version"