Enum redis_ts::TsBucketTimestamp
source · pub enum TsBucketTimestamp {
Low,
High,
Mid,
}
Expand description
Bucket timestamp controls how bucket timestamps are reported.
- Low: the bucket’s start time (default).
- High: the bucket’s end time.
- Mid: the bucket’s mid time (rounded down if not an integer).
Variants§
Trait Implementations§
source§impl Clone for TsBucketTimestamp
impl Clone for TsBucketTimestamp
source§fn clone(&self) -> TsBucketTimestamp
fn clone(&self) -> TsBucketTimestamp
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 TsBucketTimestamp
impl Debug for TsBucketTimestamp
source§impl PartialEq for TsBucketTimestamp
impl PartialEq for TsBucketTimestamp
source§fn eq(&self, other: &TsBucketTimestamp) -> bool
fn eq(&self, other: &TsBucketTimestamp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToRedisArgs for TsBucketTimestamp
impl ToRedisArgs for TsBucketTimestamp
source§fn 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
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
).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.impl Copy for TsBucketTimestamp
impl Eq for TsBucketTimestamp
impl StructuralPartialEq for TsBucketTimestamp
Auto Trait Implementations§
impl Freeze for TsBucketTimestamp
impl RefUnwindSafe for TsBucketTimestamp
impl Send for TsBucketTimestamp
impl Sync for TsBucketTimestamp
impl Unpin for TsBucketTimestamp
impl UnwindSafe for TsBucketTimestamp
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