Trait unc_jsonrpc_client::methods::RpcMethod
source · pub trait RpcMethod: Sealed{
type Response;
type Error;
// Required methods
fn method_name(&self) -> &str;
fn params(&self) -> Result<Value, Error>;
// Provided method
fn parse_handler_response(
response: Value
) -> Result<Result<Self::Response, Self::Error>, Error> { ... }
}
Expand description
A trait identifying valid unc JSON-RPC methods.
Required Associated Types§
Required Methods§
Provided Methods§
fn parse_handler_response( response: Value ) -> Result<Result<Self::Response, Self::Error>, Error>
Object Safety§
This trait is not object safe.