pub trait HyperClientBuilder {
    type Connector: Service<Uri> + Clone + Send + Sync + 'static;

    // Required method
    fn build_hyper_client(self) -> Client<Self::Connector>;
}
Expand description

A trait implemented for any hyper::Client as well as the DefaultHyperClient.

Required Associated Types§

source

type Connector: Service<Uri> + Clone + Send + Sync + 'static

The hyper connector that the resulting hyper client will use.

Required Methods§

source

fn build_hyper_client(self) -> Client<Self::Connector>

Create a hyper::Client

Implementations on Foreign Types§

source§

impl<S> HyperClientBuilder for Client<S>
where S: Service<Uri> + Clone + Send + Sync + 'static, S::Response: Connection + AsyncRead + AsyncWrite + Send + Unpin + 'static, S::Future: Send + Unpin + 'static, S::Error: Into<Box<dyn StdError + Send + Sync>>,

Implementors§