pub struct Message {
pub subject: String,
pub sid: String,
pub reply_to: Option<String>,
pub payload: Vec<u8>,
}
Expand description
MSG protocol message is used to deliver an application message to the client.
MSG
where:
- subject: Subject name this message was received on
- sid: The unique alphanumeric subscription ID of the subject
- reply-to: The inbox subject on which the publisher is listening for responses
- #bytes: Size of the payload in bytes
- payload: The message payload data
Fields
subject: String
sid: String
reply_to: Option<String>
payload: Vec<u8>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Message
impl UnwindSafe for Message
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self