pub trait DevApi<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 = Result<Option<BlockStats>, Error>> + Send + 'async_trait, Global>>
       where 'life0: 'async_trait,
             Self: Sync + '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 = Result<Option<BlockStats>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: Sync + '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,