pub trait RpcApi<N, T>: Send + Sync {
// Required method
fn rpc_modules<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = TransportResult<RpcModules>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Available on crate feature
rpc-api
only.Expand description
The rpc API provides methods to get information about the RPC server itself, such as the enabled namespaces.
Required Methods§
sourcefn rpc_modules<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = TransportResult<RpcModules>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn rpc_modules<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = TransportResult<RpcModules>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Lists the enabled RPC namespaces and the versions of each.