pub struct Delivery { /* private fields */ }Expand description
A message received from the EDA bus
Implementations§
Source§impl Delivery
impl Delivery
pub fn routing_key(&self) -> &str
pub fn content_type(&self) -> Option<&str>
Sourcepub fn redelivered(&self) -> bool
pub fn redelivered(&self) -> bool
Return true if the message was already presented to this or another worker (and was nack’ed).
pub fn conversation_id(&self) -> Option<&str>
pub fn correlation_id(&self) -> Option<&str>
pub fn exchange(&self) -> &str
pub fn reply_to(&self) -> Option<&str>
pub fn deserialize_payload<'a, T: Deserialize<'a>>(&'a self) -> Result<T, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Delivery
impl RefUnwindSafe for Delivery
impl Send for Delivery
impl Sync for Delivery
impl Unpin for Delivery
impl UnsafeUnpin for Delivery
impl UnwindSafe for Delivery
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