pub struct Next<'a> { /* private fields */ }Expand description
The remainder of the middleware chain plus the endpoint handler.
Implementations§
Source§impl<'a> Next<'a>
impl<'a> Next<'a>
Sourcepub fn run<'b>(self, ctx: &'b mut RequestCtx) -> MiddlewareFuture<'b>where
'a: 'b,
pub fn run<'b>(self, ctx: &'b mut RequestCtx) -> MiddlewareFuture<'b>where
'a: 'b,
Run the rest of the chain. Takes a reborrow (&mut *ctx) so the caller
keeps using ctx after awaiting.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Next<'a>
impl<'a> !UnwindSafe for Next<'a>
impl<'a> Freeze for Next<'a>
impl<'a> Send for Next<'a>
impl<'a> Sync for Next<'a>
impl<'a> Unpin for Next<'a>
impl<'a> UnsafeUnpin for Next<'a>
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