Trait basilisk::client::ClientHandle
source · pub trait ClientHandle {
fn execute_with<T: ExecuteWithClient>(&self, t: T) -> T::Output;
}
Expand description
A handle to a Basilisk client instance.
The Basilisk service supports multiple different runtimes (Basilisk itself or testing runtime). 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§
sourcefn 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.