pub trait RpcMethodSimple: Send + Sync + 'static {
    type Out: Future<Output = Result<Value, Error>> + Send;

    // Required method
    fn call(&self, params: Params) -> Self::Out;
}
Expand description

Asynchronous Method

Required Associated Types§

source

type Out: Future<Output = Result<Value, Error>> + Send

Output future

Required Methods§

source

fn call(&self, params: Params) -> Self::Out

Call method

Implementors§

source§

impl<F, X> RpcMethodSimple for Fwhere F: Fn(Params) -> X + Send + Sync + 'static, X: Future<Output = Result<Value, Error>> + Send + 'static,

§

type Out = X