pub enum TrimMethod {
MaxLen(u64),
MinId(StreamId),
}
Expand description
Trimming method
Variants§
MaxLen(u64)
Request to clean exceeding specified number of elements.
MinId(StreamId)
Request to clean entries below specified id.
Supported since Redis 6.2
Trait Implementations§
Source§impl Clone for TrimMethod
impl Clone for TrimMethod
Source§fn clone(&self) -> TrimMethod
fn clone(&self) -> TrimMethod
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TrimMethod
impl Debug for TrimMethod
Source§impl ToRedisArgs for TrimMethod
impl ToRedisArgs for TrimMethod
Source§fn write_redis_args<W: ?Sized + RedisWrite>(&self, out: &mut W)
fn write_redis_args<W: ?Sized + RedisWrite>(&self, out: &mut W)
This writes the value into a vector of bytes. Each item
is a single argument. Most items generate a single item. Read more
Source§fn 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.Source§fn 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
Source§fn 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
).impl Copy for TrimMethod
Auto Trait Implementations§
impl Freeze for TrimMethod
impl RefUnwindSafe for TrimMethod
impl Send for TrimMethod
impl Sync for TrimMethod
impl Unpin for TrimMethod
impl UnwindSafe for TrimMethod
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