pub trait BlockProducerMetadataRpcApiClient<Metadata>: ClientT{
// 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§
Sourcefn 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,
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.