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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.