[][src]Struct tokio_nsq::NSQMessage

pub struct NSQMessage {
    pub body: Vec<u8>,
    pub attempt: u16,
    pub id: [u8; 16],
    pub timestamp: u64,
    // some fields omitted
}

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: u16id: [u8; 16]timestamp: u64

Implementations

impl NSQMessage[src]

pub fn finish(self)[src]

Sends a message acknowledgement to NSQ.

pub fn touch(&mut self)[src]

Tells NSQ daemon to reset the timeout for this message.

Trait Implementations

impl Debug for NSQMessage[src]

impl Drop for NSQMessage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,