Trait jsonrpc_core::commander::MethodCommand
[−]
[src]
pub trait MethodCommand: Send + Sync { fn execute(&self, params: Params) -> MethodResult; }
Should be used to handle single method call.
Required Methods
fn execute(&self, params: Params) -> MethodResult
Execute this method and get result (sync / async)
Implementors
impl<F> MethodCommand for F where F: SyncMethodCommand
impl<F> MethodCommand for AsyncMethod<F> where F: AsyncMethodCommand