Struct async_nats::Message [−][src]
pub struct Message {
pub subject: String,
pub reply: Option<String>,
pub data: Vec<u8>,
pub headers: Option<Headers>,
// some fields omitted
}Expand description
A message received on a subject.
Fields
subject: StringThe subject this message came from.
reply: Option<String>Optional reply subject that may be used for sending a response to this message.
data: Vec<u8>The message contents.
headers: Option<Headers>Optional headers associated with this Message.
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Messageimpl !UnwindSafe for MessageBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V