Trait substrate_rpc_client::DevApi
pub trait DevApi<Hash>: ClientT{
// 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>>
where 'life0: 'async_trait,
Self: Sync + 'async_trait { ... }
}
Expand description
Client implementation for the DevApi
RPC API.
Provided Methods§
fn block_stats<'life0, 'async_trait>(
&'life0 self,
block_hash: Hash,
) -> Pin<Box<dyn Future<Output = Result<Option<BlockStats>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
fn block_stats<'life0, 'async_trait>(
&'life0 self,
block_hash: Hash,
) -> Pin<Box<dyn Future<Output = Result<Option<BlockStats>, Error>> + Send + 'async_trait>>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
.
Object Safety§
This trait is not object safe.