pub enum BlockKind {
Blpop,
Brpop,
Bzpopmin,
Brpoplpush,
XReadBlock,
XReadGroupBlock,
}Expand description
Which blocking command a waiter is parked in. Drives both timeout-nil shape and wake-retry dispatch.
Variants§
Blpop
Brpop
Bzpopmin
BZPOPMIN key [key ...] timeout — block until a sorted set has a
member, then pop the lowest-scored one. Same arm-and-serve flow as
BLPOP; the reply shape adds a third bulk (the score).
Brpoplpush
BRPOPLPUSH source destination timeout — atomic blocking
right-pop from source + left-push to destination. Parks
on source only. Reply: single bulk of the moved element on
success, nil bulk on timeout. Deprecated since Redis 6.2 in
favour of BLMOVE, but Bee Queue (and many older clients)
still emit it.
XReadBlock
XReadGroupBlock
Trait Implementations§
impl Copy for BlockKind
impl Eq for BlockKind
impl StructuralPartialEq for BlockKind
Auto Trait Implementations§
impl Freeze for BlockKind
impl RefUnwindSafe for BlockKind
impl Send for BlockKind
impl Sync for BlockKind
impl Unpin for BlockKind
impl UnsafeUnpin for BlockKind
impl UnwindSafe for BlockKind
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