Struct redis::streams::StreamClaimOptions
source · [−]pub struct StreamClaimOptions { /* private fields */ }
Expand description
Builder options for xclaim_options
command.
Implementations
sourceimpl StreamClaimOptions
impl StreamClaimOptions
sourcepub fn with_force(self) -> Self
pub fn with_force(self) -> Self
Set FORCE cmd arg to true.
sourcepub fn with_justid(self) -> Self
pub fn with_justid(self) -> Self
Set JUSTID cmd arg to true. Be advised: the response type changes with this option.
Trait Implementations
sourceimpl Debug for StreamClaimOptions
impl Debug for StreamClaimOptions
sourceimpl Default for StreamClaimOptions
impl Default for StreamClaimOptions
sourcefn default() -> StreamClaimOptions
fn default() -> StreamClaimOptions
Returns the “default value” for a type. Read more
sourceimpl ToRedisArgs for StreamClaimOptions
impl ToRedisArgs for StreamClaimOptions
sourcefn write_redis_args<W>(&self, out: &mut W) where
W: ?Sized + RedisWrite,
fn write_redis_args<W>(&self, out: &mut W) where
W: ?Sized + RedisWrite,
This writes the value into a vector of bytes. Each item is a single argument. Most items generate a single item. Read more
sourcefn to_redis_args(&self) -> Vec<Vec<u8>>
fn to_redis_args(&self) -> Vec<Vec<u8>>
This converts the value into a vector of bytes. Each item is a single argument. Most items generate a vector of a single item. Read more
sourcefn describe_numeric_behavior(&self) -> NumericBehavior
fn describe_numeric_behavior(&self) -> NumericBehavior
Returns an information about the contained value with regards
to it’s numeric behavior in a redis context. This is used in
some high level concepts to switch between different implementations
of redis functions (for instance INCR
vs INCRBYFLOAT
). Read more
sourcefn is_single_arg(&self) -> bool
fn is_single_arg(&self) -> bool
Returns an indiciation if the value contained is exactly one
argument. It returns false if it’s zero or more than one. This
is used in some high level functions to intelligently switch
between GET
and MGET
variants. Read more
Auto Trait Implementations
impl RefUnwindSafe for StreamClaimOptions
impl Send for StreamClaimOptions
impl Sync for StreamClaimOptions
impl Unpin for StreamClaimOptions
impl UnwindSafe for StreamClaimOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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