pub struct Client<C> { /* private fields */ }Expand description
An HTTP client for the executor.
Client<reqwest::blocking::Client> implements HttpClient and
Client<reqwest::Client> implements AsyncHttpClient.
Implementations§
Trait Implementations§
Source§impl AsyncHttpClient for Client<Client>
impl AsyncHttpClient for Client<Client>
Source§fn send<'a>(&'a mut self, request: &'a HttpRequest) -> SendFuture<'a>
fn send<'a>(&'a mut self, request: &'a HttpRequest) -> SendFuture<'a>
Send
request and return what came back. Read moreSource§impl HttpClient for Client<Client>
impl HttpClient for Client<Client>
Source§fn send(&mut self, request: &HttpRequest) -> Result<HttpResponse, ClientError>
fn send(&mut self, request: &HttpRequest) -> Result<HttpResponse, ClientError>
Send
request and return what came back. Read moreAuto Trait Implementations§
impl<C> Freeze for Client<C>where
C: Freeze,
impl<C> RefUnwindSafe for Client<C>where
C: RefUnwindSafe,
impl<C> Send for Client<C>where
C: Send,
impl<C> Sync for Client<C>where
C: Sync,
impl<C> Unpin for Client<C>where
C: Unpin,
impl<C> UnsafeUnpin for Client<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for Client<C>where
C: UnwindSafe,
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