Trait RpcMethodSync
Other items injsonrpc_core
pub trait RpcMethodSync: Send + Sync + 'static { fn call(&self, params: Params) -> BoxFuture<Result<Value>>; }
A synchronous or asynchronous method.
fn call(&self, params: Params) -> BoxFuture<Result<Value>>
Call method
impl<F: Send + Sync + 'static, X: Send + 'static> RpcMethodSync for F where F: Fn(Params) -> X, X: WrapFuture<Value, Error>,