Struct lapin::message::Delivery [−][src]
pub struct Delivery {
pub delivery_tag: LongLongUInt,
pub exchange: ShortString,
pub routing_key: ShortString,
pub redelivered: bool,
pub properties: BasicProperties,
pub data: Vec<u8>,
pub acker: Acker,
}
Expand description
A received AMQP message.
The message has to be acknowledged after processing by calling
Acker::ack
, Acker::nack
or Acker::reject
.
(Multiple acknowledgments are also possible).
Fields
delivery_tag: LongLongUInt
The delivery tag of the message. Use this for acknowledging the message.
exchange: ShortString
The exchange of the message. May be an empty string if the default exchange is used.
routing_key: ShortString
The routing key of the message. May be an empty string if no routing key is specified.
redelivered: bool
Whether this message was redelivered
properties: BasicProperties
Contains the properties and the headers of the message.
data: Vec<u8>
The payload of the message in binary format.
acker: Acker
The acker used to ack/nack the message
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Delivery
impl !UnwindSafe for Delivery
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more