pub enum RedisResponse {
SimpleString(String),
Error(String),
Integer(i32),
BulkString(String),
Array(String),
}
Expand description
The type the response data will be according to RESP specification https://redis.io/topics/protocol
Variants§
SimpleString(String)
Equivalent to String
Error(String)
The server replied with an error
Integer(i32)
A numeric string that can be parsed
BulkString(String)
A string with known size
Array(String)
An array
Trait Implementations§
Source§impl Debug for RedisResponse
impl Debug for RedisResponse
Source§impl PartialEq for RedisResponse
impl PartialEq for RedisResponse
impl StructuralPartialEq for RedisResponse
Auto Trait Implementations§
impl Freeze for RedisResponse
impl RefUnwindSafe for RedisResponse
impl Send for RedisResponse
impl Sync for RedisResponse
impl Unpin for RedisResponse
impl UnwindSafe for RedisResponse
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