referrerpolicy=no-referrer-when-downgrade

Trait sc_rpc_api::dev::DevApiClient

source ·
pub trait DevApiClient<Hash>: ClientT
where 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>> 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 = 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.

Object Safety§

This trait is not object safe.

Implementors§

source§

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