Struct redis_driver::XClaimOptions
source · pub struct XClaimOptions { /* private fields */ }
Expand description
Options for the xclaim
command
Implementations
sourceimpl XClaimOptions
impl XClaimOptions
sourcepub fn idle_time(self, idle_time_millis: u64) -> Self
pub fn idle_time(self, idle_time_millis: u64) -> Self
Set the idle time (last time it was delivered) of the message.
sourcepub fn time(self, unix_time_milliseconds: u64) -> Self
pub fn time(self, unix_time_milliseconds: u64) -> Self
This is the same as idle_time
but instead of a relative amount of milliseconds,
it sets the idle time to a specific Unix time (in milliseconds).
sourcepub fn retry_count(self, count: usize) -> Self
pub fn retry_count(self, count: usize) -> Self
Set the retry counter to the specified value.
Trait Implementations
sourceimpl Default for XClaimOptions
impl Default for XClaimOptions
sourcefn default() -> XClaimOptions
fn default() -> XClaimOptions
Returns the “default value” for a type. Read more
sourceimpl IntoArgs for XClaimOptions
impl IntoArgs for XClaimOptions
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Auto Trait Implementations
impl RefUnwindSafe for XClaimOptions
impl Send for XClaimOptions
impl Sync for XClaimOptions
impl Unpin for XClaimOptions
impl UnwindSafe for XClaimOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more