Trait pint::client::ClientHandle [−][src]
pub trait ClientHandle {
fn execute_with<T: ExecuteWithClient>(&self, t: T) -> T::Output;
}
Expand description
A handle to a Polkadot client instance.
The Polkadot service supports multiple different runtimes (Kusama, Polkadot itself, etc). As each runtime has a specialized client, we need to hide them behind a trait. This is this trait.
When wanting to work with the inner client, you need to use execute_with
.
Required methods
fn execute_with<T: ExecuteWithClient>(&self, t: T) -> T::Output
fn execute_with<T: ExecuteWithClient>(&self, t: T) -> T::Output
Execute the given something with the client.