Trait polkadot_service::ClientHandle [−][src]
pub trait ClientHandle {
fn execute_with<T>(&self, t: T) -> <T as ExecuteWithClient>::Output
where
T: ExecuteWithClient;
}
Expand description
A handle to a Polkadot client instance.
The Polkadot service supports multiple different runtimes (Westend, 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
.
See ExecuteWithClient
for more information.
Required methods
fn execute_with<T>(&self, t: T) -> <T as ExecuteWithClient>::Output where
T: ExecuteWithClient,
fn execute_with<T>(&self, t: T) -> <T as ExecuteWithClient>::Output where
T: ExecuteWithClient,
Execute the given something with the client.