Trait jsonrpc_client_http::ClientCreator[][src]

pub trait ClientCreator: Send + 'static {
    type Connect: Connect;
    type Error: Error + Send;
    fn create(
        &self,
        handle: &Handle
    ) -> Result<Client<Self::Connect, Body>, Self::Error>; }

Trait for types able to produce Hyper Clients for use in HttpTransport.

Associated Types

The connector type inside the Client created by this type.

The error emitted by this type in case creating the Client failed.

Required Methods

Tries to create a Hyper Client based on the given Tokio Handle.

Implementors