pub struct AmqpMessage { /* private fields */ }Expand description
A message delivered by an AmqpSubscriber.
ack maps to the accept disposition, nack(requeue = true) to release, and
nack(requeue = false) to reject (terminal; the broker’s dead-letter policy applies).
Deliveries received on an at-most-once subscription are already settled, so ack/nack
report AckError::Unsupported instead of pretending.
Trait Implementations§
Source§impl Debug for AmqpMessage
impl Debug for AmqpMessage
Source§impl IncomingMessage for AmqpMessage
impl IncomingMessage for AmqpMessage
Source§async fn ack(self) -> Result<(), AckError>
async fn ack(self) -> Result<(), AckError>
Acknowledges successful processing. Consumes the message handle. Read more
Source§async fn nack(self, requeue: bool) -> Result<(), AckError>
async fn nack(self, requeue: bool) -> Result<(), AckError>
Negatively acknowledges the message. When
requeue is true the broker should
redeliver according to its own retry policy; when false it should drop or dead-letter
the message. Read moreSource§fn partition_key(&self) -> Option<&[u8]>
fn partition_key(&self) -> Option<&[u8]>
Returns the routing key the broker partitioned this message by, or
None when the
message carries no key. Read moreSource§fn supports_nack_after(&self) -> bool
fn supports_nack_after(&self) -> bool
Reports whether this transport can honor
nack_after natively. Read moreSource§impl Partitioned for AmqpMessage
impl Partitioned for AmqpMessage
Source§fn partition_key(&self) -> Option<&[u8]>
fn partition_key(&self) -> Option<&[u8]>
Returns the partition key for this item, or
None if the broker should pick a partition.Auto Trait Implementations§
impl !Freeze for AmqpMessage
impl RefUnwindSafe for AmqpMessage
impl Send for AmqpMessage
impl Sync for AmqpMessage
impl Unpin for AmqpMessage
impl UnsafeUnpin for AmqpMessage
impl UnwindSafe for AmqpMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more