jsonrpc_core

Trait RpcMethodSync

Source
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 F
where F: Fn(Params) -> X + Send + Sync + 'static, X: WrapFuture<Value, Error> + Send + 'static,