[−][src]Module tari_comms::message
Message
The message module contains the message types which wrap domain-level messages.
Described further in RFC-0172
A FrameSet consists of multiple Frames. A Frame is the raw byte representation of a message.
Represents data that is about to go on the wire or has just come off.
The header that every message contains.
This message is deserialized from the body Frame of the MessageEnvelope. It consists of a MessageHeader and a domain-level body Frame. This part of the MessageEnvelope can optionally be encrypted for a particular peer.
Information about the contained message. Currently, this only contains the domain-level message type.
Structs
EnvelopeBody | Parts contained within an Envelope. This is used to tell if an encrypted message was successfully decrypted, by decrypting the envelope body and checking if deserialization succeeds. |
InboundMessage | Authenticated inbound message |
MessageTag | Represents a tag for a message |
MessagingReplyTx | Wrapper struct for a oneshot reply sender. When this struct is dropped, an automatic fail is sent on the oneshot if a response has not already been sent. |
OutboundMessage | Contains details required to build a message envelope and send a message to a peer. OutboundMessage will not copy the body bytes when cloned and is 'cheap to clone(tm)'. |
Enums
MessageError |
Traits
MessageExt |
Type Definitions
MessagingReplyRx |