[][src]Trait jsonrpc_core::RpcMethodSync

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

A synchronous or asynchronous method.

Required methods

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

Call method

Loading content...

Implementors

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

Loading content...