pub enum Proto {
Resp2,
Resp3,
}Expand description
RESP2 or RESP3, per connection.
A connection starts at RESP2 and moves to RESP3 when the client sends
HELLO 3. It can move back. The version is a property of the connection and
never of the command, which is why every reply writer takes it once at
construction rather than at each call.
Variants§
Resp2
The protocol every client understands. Five types and nothing else.
Resp3
Redis 6 and later. Maps, sets, doubles, booleans, push messages, and a null that is not a length of minus one.
Implementations§
Source§impl Proto
impl Proto
Trait Implementations§
impl Copy for Proto
impl Eq for Proto
impl StructuralPartialEq for Proto
Auto Trait Implementations§
impl Freeze for Proto
impl RefUnwindSafe for Proto
impl Send for Proto
impl Sync for Proto
impl Unpin for Proto
impl UnsafeUnpin for Proto
impl UnwindSafe for Proto
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