pub struct Next<'a> { /* private fields */ }Expand description
The next handler in the middleware chain.
Call this to continue processing to the next middleware or the actual query.
Implementations§
Source§impl<'a> Next<'a>
impl<'a> Next<'a>
Sourcepub fn run(
self,
ctx: QueryContext,
) -> BoxFuture<'a, MiddlewareResult<QueryResponse>>
pub fn run( self, ctx: QueryContext, ) -> BoxFuture<'a, MiddlewareResult<QueryResponse>>
Execute the next handler in the chain.
Auto Trait Implementations§
impl<'a> Freeze for Next<'a>
impl<'a> !RefUnwindSafe for Next<'a>
impl<'a> Send for Next<'a>
impl<'a> !Sync for Next<'a>
impl<'a> Unpin for Next<'a>
impl<'a> !UnwindSafe for Next<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more