pub enum Value {
Nil,
Int(i64),
Data(Vec<u8>),
Bulk(ResponseStream),
Status(String),
Okay,
}Variants§
Nil
A nil response from the server.
Int(i64)
An integer response. Note that there are a few situations in which redis actually returns a string for an integer.
Data(Vec<u8>)
Arbitary binary data.
Bulk(ResponseStream)
A bulk response of more data. This is generally used by redis to express nested structures.
Status(String)
A status response.
Okay
An OK from redis.
Trait Implementations§
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