pub enum Flow<T> {
Next(T),
Stop(T),
}Expand description
The result of one waterfall middleware step: continue into the rest of the chain, or short-circuit the whole waterfall (both carry the value).
Variants§
Next(T)
Pass the value to the next middleware.
Stop(T)
Short-circuit: later middleware must not run.
Implementations§
Trait Implementations§
impl<T: Copy> Copy for Flow<T>
impl<T: Eq> Eq for Flow<T>
impl<T: PartialEq> StructuralPartialEq for Flow<T>
Auto Trait Implementations§
impl<T> Forget for Flow<T>
impl<T> Freeze for Flow<T>where
T: Freeze,
impl<T> Move for Flow<T>
impl<T> RefUnwindSafe for Flow<T>where
T: RefUnwindSafe,
impl<T> Send for Flow<T>where
T: Send,
impl<T> Sync for Flow<T>where
T: Sync,
impl<T> Unpin for Flow<T>where
T: Unpin,
impl<T> UnsafeUnpin for Flow<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Flow<T>where
T: UnwindSafe,
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