Skip to main content

RpcMethod

Trait RpcMethod 

Source
pub trait RpcMethod {
    type Query: BinProtRead + BinProtWrite;
    type Response: BinProtRead + BinProtWrite;

    const NAME: RpcTag;
    const NAME_STR: &'static str;
    const VERSION: Ver;

    // Provided method
    fn rpc_id() -> String { ... }
}

Required Associated Constants§

Source

const NAME: RpcTag

Source

const NAME_STR: &'static str

Source

const VERSION: Ver

Required Associated Types§

Source

type Query: BinProtRead + BinProtWrite

Source

type Response: BinProtRead + BinProtWrite

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T, FQ, FR> RpcMethod for (T, FQ, FR)
where T: RpcMethod,

Source§

const NAME: RpcTag = T::NAME

Source§

const NAME_STR: &'static str = T::NAME_STR

Source§

const VERSION: Ver = T::VERSION

Source§

type Query = <T as RpcMethod>::Query

Source§

type Response = <T as RpcMethod>::Response

Implementors§

Source§

impl RpcMethod for AnswerSyncLedgerQueryV2

Source§

impl RpcMethod for BanNotifyV1

Source§

const NAME: RpcTag

Source§

const NAME_STR: &'static str = "ban_notify"

Source§

const VERSION: Ver = 1

Source§

type Query = Time

Source§

type Response = ()

Source§

impl RpcMethod for GetAncestryV2

Source§

impl RpcMethod for GetBestTipV2

Source§

impl RpcMethod for GetEpochLedgerV2

Source§

const NAME: RpcTag

Source§

const NAME_STR: &'static str = "get_epoch_ledger"

Source§

const VERSION: Ver = 2

Source§

type Query = BigInt

Source§

type Response = RpcResult<MinaBaseSparseLedgerBaseStableV2, BoundedCharString<MINA_STRING_MAX_LENGTH>>

Source§

impl RpcMethod for GetNodeStatusV2

Source§

const NAME: RpcTag

Source§

const NAME_STR: &'static str = "get_node_status"

Source§

const VERSION: Ver = 2

Source§

type Query = ()

Source§

type Response = RpcResult<NodeStatusV2, Info>

Source§

impl RpcMethod for GetSomeInitialPeersV1ForV2

Source§

const NAME: RpcTag

Source§

const NAME_STR: &'static str = "get_some_initial_peers"

Source§

const VERSION: Ver = 1

Source§

type Query = ()

Source§

type Response = List<NetworkPeerPeerStableV1>

Source§

impl RpcMethod for GetStagedLedgerAuxAndPendingCoinbasesAtHashV2

Source§

impl RpcMethod for GetTransitionChainProofV1ForV2

Source§

const NAME: RpcTag

Source§

const NAME_STR: &'static str = "get_transition_chain_proof"

Source§

const VERSION: Ver = 1

Source§

type Query = BigInt

Source§

type Response = Option<(BigInt, List<BigInt>)>

Source§

impl RpcMethod for GetTransitionChainV2

Source§

const NAME: RpcTag

Source§

const NAME_STR: &'static str = "get_transition_chain"

Source§

const VERSION: Ver = 2

Source§

type Query = List<BigInt>

Source§

type Response = Option<List<MinaBlockBlockStableV2>>

Source§

impl RpcMethod for GetTransitionKnowledgeV1

Source§

const NAME: RpcTag

Source§

const NAME_STR: &'static str = "Get_transition_knowledge"

Source§

const VERSION: Ver = 1

Source§

type Query = ()

Source§

type Response = List<Versioned<BigInt, 1>>

Source§

impl RpcMethod for GetTransitionKnowledgeV1ForV2

Source§

const NAME: RpcTag

Source§

const NAME_STR: &'static str = "Get_transition_knowledge"

Source§

const VERSION: Ver = 1

Source§

type Query = ()

Source§

type Response = List<BigInt>

Source§

impl RpcMethod for SendArchiveDiffUnversioned

Source§

const NAME: RpcTag

Source§

const NAME_STR: &'static str = "Send_archive_diff"

Source§

const VERSION: Ver = 0

Source§

type Query = ArchiveRpc

Source§

type Response = ()

Source§

impl RpcMethod for VersionedRpcMenuV1

Source§

const NAME: RpcTag

Source§

const NAME_STR: &'static str = "__Versioned_rpc.Menu"

Source§

const VERSION: Ver = 1

Source§

type Query = ()

Source§

type Response = List<(BoundedCharString<MINA_STRING_MAX_LENGTH>, u32)>