pub struct Claim<'a> {
pub group: &'a [u8],
pub consumer: &'a [u8],
pub min_idle: u64,
pub time: u64,
pub retry: Option<u64>,
pub bump: bool,
pub force: bool,
}Expand description
Everything XCLAIM takes past the key and the IDs.
A struct rather than seven more arguments because the command parses them as
one thing and they travel together from the wire to here, and because
XAUTOCLAIM takes the same set with one extra of its own.
Fields§
§group: &'a [u8]Which group’s pending list is being moved around.
consumer: &'a [u8]Which consumer ends up holding what is claimed.
min_idle: u64Skip anything idle less than this many milliseconds.
time: u64What to set the delivery time to, which IDLE and TIME both work out.
retry: Option<u64>RETRYCOUNT, or leave the count where it is.
bump: boolWhether the delivery count goes up, which it does unless JUSTID was
asked for.
force: boolFORCE, which makes a pending entry for one that is in the stream and
was never handed out.
Trait Implementations§
impl<'a> Copy for Claim<'a>
Auto Trait Implementations§
impl<'a> Freeze for Claim<'a>
impl<'a> RefUnwindSafe for Claim<'a>
impl<'a> Send for Claim<'a>
impl<'a> Sync for Claim<'a>
impl<'a> Unpin for Claim<'a>
impl<'a> UnsafeUnpin for Claim<'a>
impl<'a> UnwindSafe for Claim<'a>
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