ServiceHandler

Trait ServiceHandler 

pub trait ServiceHandler:
    Send
    + Sync
    + 'static {
    // Required method
    fn call(&self, input: Fields) -> BoxFuture<'static, Result<Object, Error>>;
}

Required Methods§

fn call(&self, input: Fields) -> BoxFuture<'static, Result<Object, Error>>

Implementors§

§

impl<F, Fut> ServiceHandler for F
where F: Fn(Fields) -> Fut + Send + Sync + 'static, Fut: Future<Output = Result<Object, Error>> + Send + 'static,