Enum safe_network::messaging::serialisation::MessageType
source · [−]pub enum MessageType {
Service {
msg_id: MessageId,
auth: AuthorityProof<ServiceAuth>,
dst_location: DstLocation,
msg: ServiceMsg,
},
System {
msg_id: MessageId,
msg_authority: NodeMsgAuthority,
dst_location: DstLocation,
msg: SystemMsg,
},
}
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
Service
Fields
msg_id: MessageId
Message ID
auth: AuthorityProof<ServiceAuth>
Requester’s authority over this message
dst_location: DstLocation
Message destination location
msg: ServiceMsg
the message
Service message
System
Fields
msg_id: MessageId
Message ID
Node authority over this message
dst_location: DstLocation
Message destination location
msg: SystemMsg
the message
System message
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
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