pub struct Message {
pub sequence: u64,
pub subject: String,
pub data: Vec<u8>,
pub timestamp: SystemTime,
pub redelivered: bool,
pub redelivery_count: u32,
/* private fields */
}
Expand description
NATS Streaming message received on a given Subscription
Fields§
§sequence: u64
§subject: String
§data: Vec<u8>
§timestamp: SystemTime
§redelivered: bool
§redelivery_count: u32
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl !RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl !UnwindSafe for Message
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more