pub enum Flow {
Continue,
Close,
Block,
Hold,
}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.
Hold
Nothing was written and the command has not run at all.
The server is paused, so the connection keeps the command it was about to run and runs it again once the pause is over. Everything the client pipelined behind it is kept in the order it arrived, the same way a blocking command keeps it.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more