Struct nsq::message::Message
[−]
[src]
pub struct Message { /* fields omitted */ }
Message
represents a message on the wire.
Methods
impl Message
[src]
fn id(&self) -> BytesMut
The unique message ID which is used to reply back to nsqd.
fn body(&self) -> BytesMut
The body of the message.
fn timestamp(&self) -> i64
This is the timestamp of the message.
fn attempts(&self) -> u16
Return the number of attempts that nsqd made to deliver the message.