pub enum Flow {
Continue,
Close,
Block,
}Expand description
What the connection should do after a command.
Variants§
Continue
Read the next command.
Close
Write what is buffered and then close, which is what QUIT asks for.
Block
Nothing was written and nothing is owed yet.
The client is on the waiter list and its reply comes when a key it named has something in it or when its deadline passes, whichever happens first. Until then the connection stops reading commands, because a client that is waiting for an answer is not a client that has sent another question.
Trait Implementations§
impl Copy for Flow
impl Eq for Flow
impl StructuralPartialEq for Flow
Auto Trait Implementations§
impl Freeze for Flow
impl RefUnwindSafe for Flow
impl Send for Flow
impl Sync for Flow
impl Unpin for Flow
impl UnsafeUnpin for Flow
impl UnwindSafe for Flow
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