pub struct Next { /* private fields */ }
Expand description
Next represents the rest of the middleware chain
Implementations§
Source§impl Next
impl Next
Sourcepub async fn run(self, request: ElifRequest) -> ElifResponse
pub async fn run(self, request: ElifRequest) -> ElifResponse
Run the rest of the middleware chain with the given request
Sourcepub fn call(self, request: ElifRequest) -> NextFuture<'static>
pub fn call(self, request: ElifRequest) -> NextFuture<'static>
Run the rest of the middleware chain and return a boxed future This is a convenience method for middleware implementations
Auto Trait Implementations§
impl Freeze for Next
impl !RefUnwindSafe for Next
impl Send for Next
impl !Sync for Next
impl Unpin for Next
impl !UnwindSafe for Next
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