Trait RpcMethod
jsonrpsee_types::traits
pub trait RpcMethod<R>: Fn(RpcParams<'_>) -> Result<R, RpcError> + Send + Sync + 'static { }
JSON-RPC server interface for managing method calls.
impl<R, T> RpcMethod<R> for T where T: Fn(RpcParams<'_>) -> Result<R, RpcError> + Send + Sync + 'static,