karyon_jsonrpc::server::service

Type Alias RPCMethod

Source
pub type RPCMethod<'a> = Box<dyn Fn(Value) -> Pin<Box<dyn Future<Output = RPCResult<Value>> + Send + Sync + 'a>> + Send + 'a>;
Expand description

Represents the RPC method

Aliased Typeยง

struct RPCMethod<'a>(/* private fields */);