pub struct AutoClaim {
pub next: EntryId,
pub claimed: Vec<Entry>,
pub deleted: Vec<EntryId>,
}Expand description
What XAUTOCLAIM returns.
use legit_streams::{AutoClaim, EntryId};
let claim = AutoClaim { next: EntryId::ZERO, claimed: Vec::new(), deleted: Vec::new() };
assert!(claim.claimed.is_empty());Fields§
§next: EntryIdWhere the next scan starts; EntryId::ZERO once the scan has covered the whole list.
claimed: Vec<Entry>The entries claimed, with their fields.
deleted: Vec<EntryId>Pending entries whose stream entry is gone. Redis 7 drops them from the pending list and lists them here; Redis 6.2 claims them with no fields, and they’re listed here too, still pending, so the caller acknowledges them either way.
Trait Implementations§
impl Eq for AutoClaim
impl StructuralPartialEq for AutoClaim
Auto Trait Implementations§
impl Forget for AutoClaim
impl Freeze for AutoClaim
impl Move for AutoClaim
impl RefUnwindSafe for AutoClaim
impl Send for AutoClaimwhere
RawVecInner: Send,
impl Sync for AutoClaimwhere
RawVecInner: Sync,
impl Unpin for AutoClaim
impl UnsafeUnpin for AutoClaimwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Entry>: UnsafeUnpin,
PhantomData<EntryId>: UnsafeUnpin,
impl UnwindSafe for AutoClaimwhere
RawVecInner: UnwindSafe,
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