[][src]Trait jsonrpc_core::RpcMethod

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

Asynchronous Method with Metadata

Required methods

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

Call method

Loading content...

Implementors

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

Loading content...