Trait duniter::service::client::ClientHandle

source ·
pub trait ClientHandle {
    // Required method
    fn execute_with<T: ExecuteWithClient>(&self, t: T) -> T::Output;
}
Expand description

A handle to a client instance.

The service supports multiple different runtimes (gtest, g1 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§

source

fn execute_with<T: ExecuteWithClient>(&self, t: T) -> T::Output

Execute the given something with the client.

Object Safety§

This trait is not object safe.

Implementors§