Skip to main content

RpcApiClient

Trait RpcApiClient 

Source
pub trait RpcApiClient: ClientT {
    // Provided method
    fn rpc_modules(
        &self,
    ) -> impl Future<Output = Result<RpcModules, Error>> + Send { ... }
}
Available on crate features rpc and client only.
Expand description

Client implementation for the RpcApi RPC API.

Provided Methods§

Source

fn rpc_modules(&self) -> impl Future<Output = Result<RpcModules, Error>> + Send

Lists enabled APIs and the version of each.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<TypeJsonRpseeInternal> RpcApiClient for TypeJsonRpseeInternal
where TypeJsonRpseeInternal: ClientT,