Enum redis_module::redisvalue::RedisValue
source · [−]pub enum RedisValue {
SimpleStringStatic(&'static str),
SimpleString(String),
BulkString(String),
BulkRedisString(RedisString),
StringBuffer(Vec<u8>),
Integer(i64),
Float(f64),
Array(Vec<RedisValue>),
Null,
NoReply,
}
Variants
SimpleStringStatic(&'static str)
SimpleString(String)
BulkString(String)
BulkRedisString(RedisString)
StringBuffer(Vec<u8>)
Integer(i64)
Float(f64)
Array(Vec<RedisValue>)
Null
NoReply
Trait Implementations
sourceimpl Debug for RedisValue
impl Debug for RedisValue
sourceimpl From<&'_ RedisString> for RedisValue
impl From<&'_ RedisString> for RedisValue
sourcefn from(s: &RedisString) -> Self
fn from(s: &RedisString) -> Self
Performs the conversion.
sourceimpl<T: Into<Self>> From<Option<T>> for RedisValue
impl<T: Into<Self>> From<Option<T>> for RedisValue
sourceimpl From<RedisString> for RedisValue
impl From<RedisString> for RedisValue
sourcefn from(s: RedisString) -> Self
fn from(s: RedisString) -> Self
Performs the conversion.
sourceimpl PartialEq<RedisValue> for RedisValue
impl PartialEq<RedisValue> for RedisValue
sourcefn eq(&self, other: &RedisValue) -> bool
fn eq(&self, other: &RedisValue) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RedisValue) -> bool
fn ne(&self, other: &RedisValue) -> bool
This method tests for !=
.
impl StructuralPartialEq for RedisValue
Auto Trait Implementations
impl RefUnwindSafe for RedisValue
impl !Send for RedisValue
impl !Sync for RedisValue
impl Unpin for RedisValue
impl UnwindSafe for RedisValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more