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§impl Debug for AmqpContext
impl Debug for AmqpContext
Source§impl Default for AmqpContext
impl Default for AmqpContext
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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more