Struct tokio_nsq::NSQMessage
source · pub struct NSQMessage {
pub body: Vec<u8>,
pub attempt: u16,
pub id: [u8; 16],
pub timestamp: u64,
/* private fields */
}
Expand description
An NSQ message. If this message is dropped with being finished and the respective NSQ daemon connection still exists the message will automatically by requeued.
Fields§
§body: Vec<u8>
§attempt: u16
§id: [u8; 16]
§timestamp: u64
Implementations§
source§impl NSQMessage
impl NSQMessage
Trait Implementations§
source§impl Debug for NSQMessage
impl Debug for NSQMessage
Auto Trait Implementations§
impl !RefUnwindSafe for NSQMessage
impl Send for NSQMessage
impl Sync for NSQMessage
impl Unpin for NSQMessage
impl !UnwindSafe for NSQMessage
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