pub struct Client { /* private fields */ }
Expand description
An asynchronous HTTP client to a remote service.
Implementations§
Trait Implementations§
Source§impl AsyncClient for Client
impl AsyncClient for Client
Source§type BodyWriter = BodyWriter
type BodyWriter = BodyWriter
The client’s binary request body write type.
Source§type ResponseBody = ResponseBody
type ResponseBody = ResponseBody
The client’s binary response body type.
Source§async fn send(
&self,
request: Request<AsyncRequestBody<'_, Self::BodyWriter>>,
) -> Result<Response<Self::ResponseBody>, Error>
async fn send( &self, request: Request<AsyncRequestBody<'_, Self::BodyWriter>>, ) -> Result<Response<Self::ResponseBody>, Error>
Makes an HTTP request. Read more
Source§impl AsyncService<Client> for Client
impl AsyncService<Client> for Client
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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