pub struct Nack { /* private fields */ }Expand description
One entry handed out and not yet acknowledged.
Redis calls this a NACK, for not acknowledged.
Implementations§
Source§impl Nack
impl Nack
Sourcepub fn owner(&self) -> Option<u32>
pub fn owner(&self) -> Option<u32>
Which consumer holds it, or None for one that has been released.
Sourcepub fn idle(&self, now: u64) -> u64
pub fn idle(&self, now: u64) -> u64
How long it has been sitting, which is what min-idle-time is compared to.
Saturating, because a NACK whose time was set forward by XCLAIM TIME is
something a caller is allowed to ask for and is not idle at all. An entry
nobody holds has been idle for as long as there is, so that every claim
and every XPENDING IDLE filter picks it up whatever they asked for.
Trait Implementations§
impl Eq for Nack
impl StructuralPartialEq for Nack
Auto Trait Implementations§
impl Freeze for Nack
impl RefUnwindSafe for Nack
impl Send for Nack
impl Sync for Nack
impl Unpin for Nack
impl UnsafeUnpin for Nack
impl UnwindSafe for Nack
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