pub enum ResponseLine {
Array(usize),
SimpleString(String),
Error(String),
Integer(i64),
BulkString(usize),
Null,
}Expand description
A response line is the type that is parsed from a single \r\n delimited string returned from
the redis server.
Variants§
Array(usize)
An array response line indicates we have a string following.
SimpleString(String)
A simple string line is typically predicated by a bulk string line.
Error(String)
The error line includes a message.
Integer(i64)
Integers - signed.
BulkString(usize)
The bulk string response is usually part of an array.
Null
A null response line.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResponseLine
impl RefUnwindSafe for ResponseLine
impl Send for ResponseLine
impl Sync for ResponseLine
impl Unpin for ResponseLine
impl UnwindSafe for ResponseLine
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