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§
impl<D> Eq for Flow<D>where
D: Eq,
Source§impl<D> Ord for Flow<D>where
D: Ord,
impl<D> Ord for Flow<D>where
D: Ord,
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<D> PartialOrd for Flow<D>where
D: PartialOrd,
impl<D> PartialOrd for Flow<D>where
D: PartialOrd,
impl<D> StructuralPartialEq for Flow<D>where
D: PartialEq,
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> UnsafeUnpin for Flow<D>where
D: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<C, T> Extract<T> for Cwhere
T: FromContext<C>,
impl<C, T> Extract<T> for Cwhere
T: FromContext<C>,
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> ⓘ
Converts
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> ⓘ
Converts
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