pub struct XClaimOptions { /* private fields */ }
Expand description
Options for the xclaim
command
Implementations§
Source§impl 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§
Source§impl Default for XClaimOptions
impl Default for XClaimOptions
Source§fn default() -> XClaimOptions
fn default() -> XClaimOptions
Returns the “default value” for a type. Read more
Source§impl IntoArgs for XClaimOptions
impl IntoArgs for XClaimOptions
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Auto Trait Implementations§
impl Freeze for XClaimOptions
impl RefUnwindSafe for XClaimOptions
impl Send for XClaimOptions
impl Sync for XClaimOptions
impl Unpin for XClaimOptions
impl UnwindSafe for XClaimOptions
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