Struct pavex::middleware::Next
source · pub struct Next<C>where
C: IntoFuture<Output = Response>,{ /* private fields */ }
Expand description
A handle to trigger the execution of the rest of the request processing pipeline.
It is used by wrapping middlewares to delegate the processing of the request to the next middleware in the pipeline (or to the request handler).
Check out Blueprint::wrap
for more information.
Implementations§
Trait Implementations§
source§impl<C> IntoFuture for Next<C>where
C: IntoFuture<Output = Response>,
impl<C> IntoFuture for Next<C>where
C: IntoFuture<Output = Response>,
source§type IntoFuture = <C as IntoFuture>::IntoFuture
type IntoFuture = <C as IntoFuture>::IntoFuture
Which kind of future are we turning this into?
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<C> Freeze for Next<C>where
C: Freeze,
impl<C> RefUnwindSafe for Next<C>where
C: RefUnwindSafe,
impl<C> Send for Next<C>where
C: Send,
impl<C> Sync for Next<C>where
C: Sync,
impl<C> Unpin for Next<C>where
C: Unpin,
impl<C> UnwindSafe for Next<C>where
C: 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