[][src]Trait jsonrpc_core::RpcMethod

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

Asynchronous Method with Metadata

Required methods

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

Call method

Loading content...

Implementors

impl<F: Send + Sync + 'static, X: Send + 'static, T> RpcMethod<T> for F where
    T: Metadata,
    F: Fn(Params, T) -> X,
    X: Future<Output = Result<Value, Error>>, 
[src]

Loading content...