pub struct AutoAck { /* private fields */ }Expand description
Automatically ack delivery when this struct drops. There is an option to automatically nack the delivery.
Implementations§
Source§impl AutoAck
impl AutoAck
Sourcepub fn new(acker: Acker) -> Self
pub fn new(acker: Acker) -> Self
Creates a new auto ack
§Arguments:
- channel - the channel where this delivery was received on
- delivery - delivery which was received. This will take its id of the delivery.
Sourcepub fn new_ack(acker: Acker, options: BasicAckOptions) -> Self
pub fn new_ack(acker: Acker, options: BasicAckOptions) -> Self
Creates a new auto ack with BasicAckOptions
pub fn new_nack(acker: Acker, options: BasicNackOptions) -> Self
pub fn new_reject(acker: Acker, options: BasicRejectOptions) -> Self
Sourcepub fn change_to_nack(&mut self, options: Option<BasicNackOptions>)
pub fn change_to_nack(&mut self, options: Option<BasicNackOptions>)
Change the auto ack in to auto nack
pub fn change_to_reject(&mut self, options: Option<BasicRejectOptions>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AutoAck
impl !RefUnwindSafe for AutoAck
impl Send for AutoAck
impl Sync for AutoAck
impl Unpin for AutoAck
impl !UnwindSafe for AutoAck
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