Trait darkfi::net::message::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

Object Safety§

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"