Enum safe_network::messaging::MessageType [−][src]
pub enum MessageType { SectionInfo { msg: SectionInfoMsg, dst_info: DstInfo, }, Client { msg: ClientMsg, dst_info: DstInfo, }, Routing { msg: RoutingMsg, dst_info: DstInfo, }, Node { msg: NodeMsg, dst_info: DstInfo, src_section_pk: Option<PublicKey>, }, }
Expand description
Type of message. Note this is part of this crate’s public API but this enum is never serialised or even part of the message that is sent over the wire.
Variants
Message about infrastructure (may be directed at nodes or clients)
Show fields
Fields of SectionInfo
Client message
Routing layer messages
Show fields
Fields of Routing
Node to node message
Show fields
Implementations
serialize the message type into bytes ready to be sent over the wire.
Returns a WireMsg built from this MessageType
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more