Enum lapin::publisher_confirm::Confirmation
source · pub enum Confirmation {
Ack(Option<Box<BasicReturnMessage>>),
Nack(Option<Box<BasicReturnMessage>>),
NotRequested,
}
Variants§
Implementations§
source§impl Confirmation
impl Confirmation
pub fn take_message(self) -> Option<BasicReturnMessage>
pub fn is_ack(&self) -> bool
pub fn is_nack(&self) -> bool
Trait Implementations§
source§impl Debug for Confirmation
impl Debug for Confirmation
source§impl PartialEq for Confirmation
impl PartialEq for Confirmation
source§fn eq(&self, other: &Confirmation) -> bool
fn eq(&self, other: &Confirmation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Confirmation
Auto Trait Implementations§
impl Freeze for Confirmation
impl !RefUnwindSafe for Confirmation
impl Send for Confirmation
impl Sync for Confirmation
impl Unpin for Confirmation
impl !UnwindSafe for Confirmation
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