pub enum RedisValue {
Nil,
Ok,
Status(String),
Int(i64),
BulkString(Vec<u8>),
Array(Vec<RedisValue>),
}
Expand description
Set of types that are parsed to and from RESP binary packets. Represents RESP protocol: “https://redis.io/topics/protocol”.
Variants§
Trait Implementations§
Source§impl Clone for RedisValue
impl Clone for RedisValue
Source§fn clone(&self) -> RedisValue
fn clone(&self) -> RedisValue
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 RedisValue
impl Debug for RedisValue
Source§impl FromRedisValue for RedisValue
impl FromRedisValue for RedisValue
fn from_redis_value(value: &RedisValue) -> RedisResult<Self>
fn from_redis_u8(_: u8) -> Option<Self>
Source§impl PartialEq for RedisValue
impl PartialEq for RedisValue
impl Eq for RedisValue
impl StructuralPartialEq for RedisValue
Auto Trait Implementations§
impl Freeze for RedisValue
impl RefUnwindSafe for RedisValue
impl Send for RedisValue
impl Sync for RedisValue
impl Unpin for RedisValue
impl UnwindSafe for RedisValue
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