Enum safe_network::messaging::serialisation::MessageType [−][src]
pub enum MessageType { SectionInfo { msg_id: MessageId, dst_location: DstLocation, msg: SectionInfoMsg, }, Client { msg_id: MessageId, client_signed: ClientSigned, dst_location: DstLocation, msg: DataMsg, }, Node { msg_id: MessageId, msg_authority: NodeMsgAuthority, dst_location: DstLocation, msg: NodeMsg, }, }
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
Show fields
Fields of SectionInfo
msg_id: MessageId
Message ID
dst_location: DstLocation
Message destination location
msg: SectionInfoMsg
the message
Client message
Show fields
Fields of Client
msg_id: MessageId
Message ID
client_signed: ClientSigned
Client authority over this message
dst_location: DstLocation
Message destination location
msg: DataMsg
the message
Node to node message
Show fields
Fields of Node
msg_id: MessageId
Message ID
Node authority over this message
dst_location: DstLocation
Message destination location
msg: NodeMsg
the message
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