Trait BlockProducerMetadataRpcApiClient

Source
pub trait BlockProducerMetadataRpcApiClient<Metadata>: ClientT
where Metadata: Send + Sync + 'static + DeserializeOwned,
{ // Provided method fn get_block_producer_metadata<'life0, 'async_trait>( &'life0 self, cross_chain_public_key: CrossChainPublicKey, ) -> Pin<Box<dyn Future<Output = Result<Option<Metadata>, Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait { ... } }
Expand description

Client implementation for the BlockProducerMetadataRpcApi RPC API.

Provided Methods§

Source

fn get_block_producer_metadata<'life0, 'async_trait>( &'life0 self, cross_chain_public_key: CrossChainPublicKey, ) -> Pin<Box<dyn Future<Output = Result<Option<Metadata>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Returns JSON-encoded metadata for given cross_chain_public_key from the storage of the current tip if it exists.

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<TypeJsonRpseeInteral, Metadata> BlockProducerMetadataRpcApiClient<Metadata> for TypeJsonRpseeInteral
where TypeJsonRpseeInteral: ClientT, Metadata: Send + Sync + 'static + DeserializeOwned,