pub trait Creator {
    // Required method
    fn call(
        &self,
        arguments: Arguments
    ) -> BoxFuture<'static, Result<&'static dyn Middleware>>;
}

Required Methods§

source

fn call( &self, arguments: Arguments ) -> BoxFuture<'static, Result<&'static dyn Middleware>>

Implementors§

source§

impl<F, Fut> Creator for F
where F: Fn(Arguments) -> Fut, Fut: Future<Output = Result<&'static dyn Middleware>> + Send + 'static,