pub trait Next: Send + Sync {
    // Required method
    fn call(&self, ctx: Ctx) -> BoxFuture<'static, Result<Response>>;
}

Required Methods§

source

fn call(&self, ctx: Ctx) -> BoxFuture<'static, Result<Response>>

Implementors§

source§

impl<F, Fut> Next for F
where F: Fn(Ctx) -> Fut + Sync + Send, Fut: Future<Output = Result<Response>> + Send + 'static,