pub trait RpcMethodSync: Send + Sync + 'static {
    // Required method
    fn call(&self, params: Params) -> BoxFuture<Result<Value>>;
}
Expand description

A synchronous or asynchronous method.

Required Methods§

source

fn call(&self, params: Params) -> BoxFuture<Result<Value>>

Call method

Implementors§

source§

impl<F, X> RpcMethodSync for Fwhere F: Fn(Params) -> X + Send + Sync + 'static, X: WrapFuture<Value, Error> + Send + 'static,