pub enum Ack {
Acknowledged,
NotFound,
LeaseMismatch,
LeaseExpired,
}Expand description
Outcome of an acknowledgement attempt.
Negative variants are classified from the snapshot that was read and do not
perform a write. A concurrent claim or acknowledgement can make them stale.
Only Ack::Acknowledged is durable.
Variants§
Acknowledged
The current claim was acknowledged and the message was removed.
NotFound
No queued message has that identifier in the snapshot that was read.
LeaseMismatch
The snapshot’s lease token does not match, or the message has no lease.
LeaseExpired
The matching lease has expired in the snapshot that was read.
Trait Implementations§
impl Copy for Ack
impl Eq for Ack
impl StructuralPartialEq for Ack
Auto Trait Implementations§
impl Freeze for Ack
impl RefUnwindSafe for Ack
impl Send for Ack
impl Sync for Ack
impl Unpin for Ack
impl UnsafeUnpin for Ack
impl UnwindSafe for Ack
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