referrerpolicy=no-referrer-when-downgrade

Trait PolkadotRpcClient

Source
pub trait PolkadotRpcClient: ClientT {
    // Provided method
    fn post_dispatch_weight<'life0, 'async_trait>(
        &'life0 self,
        transaction_hash: H256,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Weight>, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Client implementation for the PolkadotRpc RPC API.

Provided Methods§

Source

fn post_dispatch_weight<'life0, 'async_trait>( &'life0 self, transaction_hash: H256, ) -> Pin<Box<dyn Future<Output = Result<Option<Weight>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Get the post dispatch weight for a given transaction hash.

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.

Implementors§

Source§

impl<TypeJsonRpseeInteral> PolkadotRpcClient for TypeJsonRpseeInteral
where TypeJsonRpseeInteral: ClientT,