pub enum RespValue {
Show 13 variants
Attribute(BTreeMap<RespPrimitive, RespValue>),
Array(Vec<RespValue>),
Bignum(Bytes),
Boolean(bool),
Double(OrderedFloat<f64>),
Error(Bytes),
Integer(i64),
Map(BTreeMap<RespPrimitive, RespValue>),
Nil,
Push(Vec<RespValue>),
Set(BTreeSet<RespPrimitive>),
String(Bytes),
Verbatim(Bytes, Bytes),
}Expand description
A RESP value, possibly built from many frames.
These values are meant to be used for testing, and thus can be hashed and compared. However, this also makes them far less performant than reading frames directly.
Variants§
Attribute(BTreeMap<RespPrimitive, RespValue>)
Array(Vec<RespValue>)
Bignum(Bytes)
Boolean(bool)
Double(OrderedFloat<f64>)
Error(Bytes)
Integer(i64)
Map(BTreeMap<RespPrimitive, RespValue>)
Nil
Push(Vec<RespValue>)
Set(BTreeSet<RespPrimitive>)
String(Bytes)
Verbatim(Bytes, Bytes)
Implementations§
Trait Implementations§
source§impl Ord for RespValue
impl Ord for RespValue
source§impl PartialEq for RespValue
impl PartialEq for RespValue
source§impl PartialOrd for RespValue
impl PartialOrd for RespValue
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl TryFrom<RespValue> for RespPrimitive
impl TryFrom<RespValue> for RespPrimitive
impl Eq for RespValue
impl StructuralEq for RespValue
impl StructuralPartialEq for RespValue
Auto Trait Implementations§
impl RefUnwindSafe for RespValue
impl Send for RespValue
impl Sync for RespValue
impl Unpin for RespValue
impl UnwindSafe for RespValue
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