pub trait DevApiClient<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 Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
Client implementation for the DevApi
RPC API.
Provided Methods§
Sourcefn block_stats<'life0, 'async_trait>(
&'life0 self,
block_hash: Hash,
) -> Pin<Box<dyn Future<Output = Result<Option<BlockStats>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: '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
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
.
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.