pub enum RequestData<B> {
Continue(B),
Break,
Cancel,
}Expand description
Carries user data from Request filter to Response filter when possible and represents the three posible final statuses from a Request filter. This type is intended to be injected as a parameter in Response filters.
Variants§
Continue(B)
Represents that the Request filter has ended with a Flow::Continue.
This variant carries the user data from Request filter.
Break
Represents that the Request filter has ended with a Flow::Break.
Cancel
Represents that the Request filter being cancelled due to a flow breaking in the upstream.
Trait Implementations§
Source§impl<B: Clone> Clone for RequestData<B>
impl<B: Clone> Clone for RequestData<B>
Source§fn clone(&self) -> RequestData<B>
fn clone(&self) -> RequestData<B>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<B: Debug> Debug for RequestData<B>
impl<B: Debug> Debug for RequestData<B>
Source§impl<D> FromContext<ResponseContext<D>, Transitive> for RequestData<D>where
D: 'static,
impl<D> FromContext<ResponseContext<D>, Transitive> for RequestData<D>where
D: 'static,
type Error = AlreadyExtracted<RequestData<D>>
fn from_context(context: &ResponseContext<D>) -> Result<Self, Self::Error>
Auto Trait Implementations§
impl<B> Freeze for RequestData<B>where
B: Freeze,
impl<B> RefUnwindSafe for RequestData<B>where
B: RefUnwindSafe,
impl<B> Send for RequestData<B>where
B: Send,
impl<B> Sync for RequestData<B>where
B: Sync,
impl<B> Unpin for RequestData<B>where
B: Unpin,
impl<B> UnwindSafe for RequestData<B>where
B: 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