pub struct DefaultHyperClientBuilder { /* private fields */ }
Available on crate features
hyper-rustls
or hyper-tls
only.Expand description
The builder value used when the default hyper client should be used.
Implementations§
Source§impl DefaultHyperClientBuilder
impl DefaultHyperClientBuilder
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Set the duration after which a request times out
Trait Implementations§
Source§impl Default for DefaultHyperClientBuilder
impl Default for DefaultHyperClientBuilder
Source§fn default() -> DefaultHyperClientBuilder
fn default() -> DefaultHyperClientBuilder
Returns the “default value” for a type. Read more
Source§impl HyperClientBuilder for DefaultHyperClientBuilder
impl HyperClientBuilder for DefaultHyperClientBuilder
Source§type Connector = HttpsConnector<HttpConnector>
type Connector = HttpsConnector<HttpConnector>
The hyper connector that the resulting hyper client will use.
Source§fn with_timeout(self, timeout: Duration) -> Self
fn with_timeout(self, timeout: Duration) -> Self
Sets duration after which a request times out
Source§fn build_hyper_client(self) -> Result<HttpClient<Self::Connector>, Error>
fn build_hyper_client(self) -> Result<HttpClient<Self::Connector>, Error>
Create a hyper::Client
Auto Trait Implementations§
impl Freeze for DefaultHyperClientBuilder
impl RefUnwindSafe for DefaultHyperClientBuilder
impl Send for DefaultHyperClientBuilder
impl Sync for DefaultHyperClientBuilder
impl Unpin for DefaultHyperClientBuilder
impl UnwindSafe for DefaultHyperClientBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more