Trait yup_oauth2::authenticator::HyperClientBuilder
source · [−]pub trait HyperClientBuilder {
type Connector: Service<Uri> + Clone + Send + Sync + 'static;
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
Required Methods
fn build_hyper_client(self) -> Client<Self::Connector>
fn build_hyper_client(self) -> Client<Self::Connector>
Create a hyper::Client
Implementations on Foreign Types
sourceimpl<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>>,
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>>,
type Connector = S
fn build_hyper_client(self) -> Client<S>
Implementors
sourceimpl HyperClientBuilder for DefaultHyperClient
Available on crate features hyper-rustls
or hyper-tls
only.
impl HyperClientBuilder for DefaultHyperClient
Available on crate features
hyper-rustls
or hyper-tls
only.