pub enum Value {
Nil,
Okay,
Int(i64),
Status(String),
Bulk(Vec<u8>),
Array(Vec<Value>),
}Expand description
Represents a redis RESP protocol response https://redis.io/topics/protocol#resp-protocol-description
Variants§
Nil
A nil response from the server.
Okay
A status response that represents the string “OK”.
Int(i64)
An integer response. Note that there are a few situations when redis actually returns a string for an integer.
Status(String)
A simple string response.
Bulk(Vec<u8>)
A Bulk String reply.
Array(Vec<Value>)
An Array response of more data.
Implementations§
Trait Implementations§
impl Eq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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