pub struct Return {
    pub reply_code: u16,
    pub reply_text: String,
    pub exchange: String,
    pub routing_key: String,
    pub content: Vec<u8>,
    pub properties: AmqpProperties,
}
Expand description

An unpublished message returned to the publishing channel.

To receive returned messages, you must call Channel::listen_for_returns. If the server returns messages and that method has not been called, the returned message will be discarded.

Fields

reply_code: u16

AMQP code providing information about why the message was undeliverable.

reply_text: String

Text providing information about why the message was undeliverable.

exchange: String

The name of the exchange this message was originally published to. May be an empty string (the default exhange).

routing_key: String

The routing key specified when this message was published.

content: Vec<u8>

The content body containing the message.

properties: AmqpProperties

Properties associated with 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

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.

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)

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.