pub enum Flow<D> {
Continue(D),
Break(Response),
}Expand description
Indicates whether the current Request will continue to upstream filters
or if an early Response must break the current flow.
This type is intended to be returned by Request filters.
Variants§
Continue(D)
Represents that the Request flow must continue to upstream and carries user data to be
catched by RequestData::Continue in the Response filter.
Break(Response)
Represents that the Request flow must return an early Response breaking the flow
to upstream filters.
Trait Implementations§
Source§impl<D> IntoFlow for Flow<D>
impl<D> IntoFlow for Flow<D>
Source§type RequestData = D
type RequestData = D
The user data type of the target
Flow.Source§impl<D: Ord> Ord for Flow<D>
impl<D: Ord> Ord for Flow<D>
Source§impl<D: PartialOrd> PartialOrd for Flow<D>
impl<D: PartialOrd> PartialOrd for Flow<D>
impl<D: Eq> Eq for Flow<D>
impl<D> StructuralPartialEq for Flow<D>
Auto Trait Implementations§
impl<D> Freeze for Flow<D>where
D: Freeze,
impl<D> RefUnwindSafe for Flow<D>where
D: RefUnwindSafe,
impl<D> Send for Flow<D>where
D: Send,
impl<D> Sync for Flow<D>where
D: Sync,
impl<D> Unpin for Flow<D>where
D: Unpin,
impl<D> UnwindSafe for Flow<D>where
D: 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