Trait yup_oauth2::authenticator::HyperClientBuilder

source ·
pub trait HyperClientBuilder {
    type Connector: Connect + Clone + Send + Sync + 'static;

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

A trait implemented for any hyper_util::client::legacy::Client as well as the DefaultHyperClient.

Required Associated Types§

source

type Connector: Connect + Clone + Send + Sync + 'static

The hyper connector that the resulting hyper client will use.

Required Methods§

source

fn build_hyper_client(self) -> Result<Client<Self::Connector, String>, Error>

Create a hyper::Client

Implementations on Foreign Types§

source§

impl<C> HyperClientBuilder for Client<C, String>
where C: Connect + Clone + Send + Sync + 'static,

Implementors§

source§

impl HyperClientBuilder for DefaultHyperClient

Available on crate features hyper-rustls or hyper-tls only.