pub struct RedisAveragef32(pub Averagef32);
Tuple Fields§
§0: Averagef32
Trait Implementations§
Source§impl AddAssign for RedisAveragef32
impl AddAssign for RedisAveragef32
Source§fn add_assign(&mut self, rhs: RedisAveragef32)
fn add_assign(&mut self, rhs: RedisAveragef32)
Performs the
+=
operation. Read moreSource§impl Clone for RedisAveragef32
impl Clone for RedisAveragef32
Source§fn clone(&self) -> RedisAveragef32
fn clone(&self) -> RedisAveragef32
Returns a duplicate 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 Convert<RedisAveragef32> for Averagef32
impl Convert<RedisAveragef32> for Averagef32
fn convert(rhs: RedisAveragef32) -> Self
Source§impl Debug for RedisAveragef32
impl Debug for RedisAveragef32
Source§impl<'de> Deserialize<'de> for RedisAveragef32
impl<'de> Deserialize<'de> for RedisAveragef32
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Averagef32> for RedisAveragef32
impl From<Averagef32> for RedisAveragef32
Source§fn from(avg: Averagef32) -> Self
fn from(avg: Averagef32) -> Self
Converts to this type from the input type.
Source§impl FromRedisValue for RedisAveragef32
impl FromRedisValue for RedisAveragef32
Source§fn from_redis_value(v: &Value) -> RedisResult<Self>
fn from_redis_value(v: &Value) -> RedisResult<Self>
Given a redis
Value
this attempts to convert it into the given
destination type. If that fails because it’s not compatible an
appropriate error is generated.Source§fn from_redis_values(items: &[Value]) -> Result<Vec<Self>, RedisError>
fn from_redis_values(items: &[Value]) -> Result<Vec<Self>, RedisError>
Similar to
from_redis_value
but constructs a vector of objects
from another vector of values. This primarily exists internally
to customize the behavior for vectors of tuples.Source§impl Serialize for RedisAveragef32
impl Serialize for RedisAveragef32
Source§impl ToRedisArgs for RedisAveragef32
impl ToRedisArgs for RedisAveragef32
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.Auto Trait Implementations§
impl Freeze for RedisAveragef32
impl RefUnwindSafe for RedisAveragef32
impl Send for RedisAveragef32
impl Sync for RedisAveragef32
impl Unpin for RedisAveragef32
impl UnwindSafe for RedisAveragef32
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