pub struct AmqpContext { /* private fields */ }Expand description
Native AMQP delivery metadata, built once per delivery.
Implementations§
Source§impl AmqpContext
impl AmqpContext
Sourcepub fn exchange(&self) -> &str
pub fn exchange(&self) -> &str
The exchange the message was published to (empty for the default exchange).
Sourcepub fn routing_key(&self) -> &str
pub fn routing_key(&self) -> &str
The routing key the message was published with.
Sourcepub fn redelivered(&self) -> bool
pub fn redelivered(&self) -> bool
Whether the broker marked the delivery as redelivered.
Sourcepub fn delivery_tag(&self) -> u64
pub fn delivery_tag(&self) -> u64
The channel-local delivery tag.
Trait Implementations§
Source§impl BuildContext<LapinMessage> for AmqpContext
impl BuildContext<LapinMessage> for AmqpContext
Source§fn build(msg: &LapinMessage) -> Self
fn build(msg: &LapinMessage) -> Self
Builds the context value by reading fields out of
msg.Source§impl Clone for AmqpContext
impl Clone for AmqpContext
Source§fn clone(&self) -> AmqpContext
fn clone(&self) -> AmqpContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AmqpContext
impl Debug for AmqpContext
Source§impl Default for AmqpContext
impl Default for AmqpContext
Source§fn default() -> AmqpContext
fn default() -> AmqpContext
Returns the “default value” for a type. Read more
impl Eq for AmqpContext
Source§impl Field<AmqpContext> for Exchange
impl Field<AmqpContext> for Exchange
Source§impl Field<AmqpContext> for RoutingKey
impl Field<AmqpContext> for RoutingKey
Source§impl Field<AmqpContext> for Redelivered
impl Field<AmqpContext> for Redelivered
Source§impl Field<AmqpContext> for DeliveryTag
impl Field<AmqpContext> for DeliveryTag
Source§impl PartialEq for AmqpContext
impl PartialEq for AmqpContext
Source§fn eq(&self, other: &AmqpContext) -> bool
fn eq(&self, other: &AmqpContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AmqpContext
Auto Trait Implementations§
impl Freeze for AmqpContext
impl RefUnwindSafe for AmqpContext
impl Send for AmqpContext
impl Sync for AmqpContext
impl Unpin for AmqpContext
impl UnsafeUnpin for AmqpContext
impl UnwindSafe for AmqpContext
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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