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§

source

fn method_name(&self) -> &str

source

fn params(&self) -> Result<Value, Error>

Provided Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> RpcMethod for &T
where T: RpcMethod,

Implementors§

source§

impl RpcMethod for RpcStateChangesInBlockByTypeRequest

source§

impl RpcMethod for RpcStateChangesInBlockRequest

source§

impl RpcMethod for RpcCheckTxRequest

source§

impl RpcMethod for RpcGenesisConfigRequest

source§

impl RpcMethod for RpcProtocolConfigRequest

source§

impl RpcMethod for RpcReceiptRequest

source§

impl RpcMethod for unc_jsonrpc_client::methods::EXPERIMENTAL_tx_status::RpcTransactionStatusRequest

source§

impl RpcMethod for RpcValidatorsOrderedRequest

source§

impl RpcMethod for RpcBlockRequest

source§

impl RpcMethod for RpcBroadcastTxAsyncRequest

source§

impl RpcMethod for RpcBroadcastTxCommitRequest

source§

impl RpcMethod for RpcChunkRequest

source§

impl RpcMethod for RpcGasPriceRequest

source§

impl RpcMethod for RpcHealthRequest

source§

impl RpcMethod for RpcLightClientExecutionProofRequest

source§

impl RpcMethod for RpcNetworkInfoRequest

source§

impl RpcMethod for RpcLightClientNextBlockRequest

source§

impl RpcMethod for RpcQueryRequest

source§

impl RpcMethod for RpcSandboxFastForwardRequest

source§

impl RpcMethod for RpcSandboxPatchStateRequest

source§

impl RpcMethod for RpcStatusRequest

source§

impl RpcMethod for unc_jsonrpc_client::methods::tx::RpcTransactionStatusRequest

source§

impl RpcMethod for RpcValidatorRequest

source§

impl<T, E> RpcMethod for RpcAnyRequest<T, E>

§

type Response = T

§

type Error = E