[−][src]Trait saphir::middleware::Middleware
Required methods
fn next(
&'static self,
ctx: HttpContext,
chain: &'static dyn MiddlewareChain
) -> BoxFuture<'static, Result<HttpContext, SaphirError>>
&'static self,
ctx: HttpContext,
chain: &'static dyn MiddlewareChain
) -> BoxFuture<'static, Result<HttpContext, SaphirError>>
Implementors
impl<Fun, Fut> Middleware for Fun where
Fun: Fn(HttpContext, &'static dyn MiddlewareChain) -> Fut,
Fut: 'static + Future<Output = Result<HttpContext, SaphirError>> + Send,
[src]
Fun: Fn(HttpContext, &'static dyn MiddlewareChain) -> Fut,
Fut: 'static + Future<Output = Result<HttpContext, SaphirError>> + Send,
fn next(
&'static self,
ctx: HttpContext,
chain: &'static dyn MiddlewareChain
) -> BoxFuture<'static, Result<HttpContext, SaphirError>>
[src]
&'static self,
ctx: HttpContext,
chain: &'static dyn MiddlewareChain
) -> BoxFuture<'static, Result<HttpContext, SaphirError>>