Trait saphir::middleware::Middleware[][src]

pub trait Middleware {
    fn next(
        &'static self,
        ctx: HttpContext,
        chain: &'static dyn MiddlewareChain
    ) -> BoxFuture<'static, Result<HttpContext, SaphirError>>; }

Required methods

fn next(
    &'static self,
    ctx: HttpContext,
    chain: &'static dyn MiddlewareChain
) -> BoxFuture<'static, Result<HttpContext, SaphirError>>
[src]

Loading content...

Implementors

impl<Fun, Fut> Middleware for Fun where
    Fun: Fn(HttpContext, &'static dyn MiddlewareChain) -> Fut,
    Fut: 'static + Future<Output = Result<HttpContext, SaphirError>> + Send
[src]

Loading content...