Trait volo_http::handler::MiddlewareHandlerFromFn
source · pub trait MiddlewareHandlerFromFn<'r, T, S>: Sized {
type Future: Future<Output = Response> + Send + 'r;
// Required method
fn call(
&self,
cx: &'r mut HttpContext,
req: Incoming,
state: &'r S,
next: Next
) -> Self::Future;
}Required Associated Types§
Required Methods§
fn call( &self, cx: &'r mut HttpContext, req: Incoming, state: &'r S, next: Next ) -> Self::Future
Object Safety§
This trait is not object safe.