Struct lapin::message::BasicReturnMessage
source · pub struct BasicReturnMessage {
pub delivery: Delivery,
pub reply_code: ReplyCode,
pub reply_text: ShortString,
}
Fields§
§delivery: Delivery
§reply_code: ReplyCode
§reply_text: ShortString
Implementations§
Methods from Deref<Target = Acker>§
pub async fn ack(&self, options: BasicAckOptions) -> Result<()>
pub async fn nack(&self, options: BasicNackOptions) -> Result<()>
pub async fn reject(&self, options: BasicRejectOptions) -> Result<()>
pub fn used(&self) -> bool
Trait Implementations§
source§impl Debug for BasicReturnMessage
impl Debug for BasicReturnMessage
source§impl Deref for BasicReturnMessage
impl Deref for BasicReturnMessage
source§impl DerefMut for BasicReturnMessage
impl DerefMut for BasicReturnMessage
source§impl PartialEq for BasicReturnMessage
impl PartialEq for BasicReturnMessage
source§fn eq(&self, other: &BasicReturnMessage) -> bool
fn eq(&self, other: &BasicReturnMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BasicReturnMessage
Auto Trait Implementations§
impl Freeze for BasicReturnMessage
impl !RefUnwindSafe for BasicReturnMessage
impl Send for BasicReturnMessage
impl Sync for BasicReturnMessage
impl Unpin for BasicReturnMessage
impl !UnwindSafe for BasicReturnMessage
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