Enum sn_messaging::MessageType [−][src]
pub enum MessageType { SectionInfo { msg: SectionInfoMsg, dest_info: DestInfo, }, Client { msg: ClientMsg, dest_info: DestInfo, }, Routing { msg: RoutingMsg, dest_info: DestInfo, }, Node { msg: NodeMsg, dest_info: DestInfo, 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
Show fields
Fields of SectionInfo
msg: SectionInfoMsg
dest_info: DestInfo
Show fields
Fields of Routing
msg: RoutingMsg
dest_info: DestInfo
Implementations
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
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V