pub struct HttpClient<C>{ /* private fields */ }
Expand description
Client that can be configured that a request will timeout after a specified duration.
Trait Implementations§
Source§impl<C> Clone for HttpClient<C>
impl<C> Clone for HttpClient<C>
Source§fn clone(&self) -> HttpClient<C>
fn clone(&self) -> HttpClient<C>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<C> HyperClientBuilder for HttpClient<C>
impl<C> HyperClientBuilder for HttpClient<C>
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<C> Freeze for HttpClient<C>where
C: Freeze,
impl<C> !RefUnwindSafe for HttpClient<C>
impl<C> Send for HttpClient<C>
impl<C> Sync for HttpClient<C>
impl<C> Unpin for HttpClient<C>where
C: Unpin,
impl<C> !UnwindSafe for HttpClient<C>
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