pub enum Step {
Incomplete,
Command {
consumed: usize,
},
}Expand description
What a decode attempt produced.
Variants§
Incomplete
Nothing yet. Read more and call again with the same buffer, extended.
Command
A whole command. Read the arguments, then drop consumed bytes from the
front of the buffer.
consumed can describe a command with no arguments at all, which is
what *0\r\n and a blank inline line are. Redis accepts both and
replies to neither, so the connection should skip them rather than
treat them as an error.
Trait Implementations§
impl Copy for Step
impl Eq for Step
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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