Trait jsonrpc_core::RpcMethodSimple[][src]

pub trait RpcMethodSimple: Send + Sync + 'static {
    type Out: Future<Item = Value, Error = Error> + Send;
    fn call(&self, params: Params) -> Self::Out;
}

Asynchronous Method

Associated Types

type Out: Future<Item = Value, Error = Error> + Send[src]

Output future

Loading content...

Required methods

fn call(&self, params: Params) -> Self::Out[src]

Call method

Loading content...

Implementors

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

type Out = X

Loading content...