pub trait DevApiClient<Hash>: ClientTwhere
    Hash: Send + Sync + 'static + Serialize,{
    // Provided method
    fn block_stats<'life0, 'async_trait>(
        &'life0 self,
        block_hash: Hash
    ) -> Pin<Box<dyn Future<Output = RpcResult<Option<BlockStats>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Client implementation for the DevApi RPC API.

Provided Methods§

source

fn block_stats<'life0, 'async_trait>( &'life0 self, block_hash: Hash ) -> Pin<Box<dyn Future<Output = RpcResult<Option<BlockStats>>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Reexecute the specified block_hash and gather statistics while doing so.

This function requires the specified block and its parent to be available at the queried node. If either the specified block or the parent is pruned, this function will return None.

Implementors§

source§

impl<TypeJsonRpseeInteral, Hash> DevApiClient<Hash> for TypeJsonRpseeInteralwhere TypeJsonRpseeInteral: ClientT, Hash: Send + Sync + 'static + Serialize,