pub struct ReqwestClient { /* private fields */ }Expand description
A client for executing requests as defined by http_request_derive::HttpRequest implementations.
Implementations§
Source§impl ReqwestClient
impl ReqwestClient
Trait Implementations§
Source§impl Client for ReqwestClient
impl Client for ReqwestClient
Source§type ClientError = ReqwestClientError
type ClientError = ReqwestClientError
An error that can be returned during request execution by the
Client.Source§fn execute<'life0, 'async_trait, R>(
&'life0 self,
request: R,
) -> Pin<Box<dyn Future<Output = Result<R::Response, Self::ClientError>> + Send + 'async_trait>>where
R: 'async_trait + HttpRequest + Send,
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait, R>(
&'life0 self,
request: R,
) -> Pin<Box<dyn Future<Output = Result<R::Response, Self::ClientError>> + Send + 'async_trait>>where
R: 'async_trait + HttpRequest + Send,
Self: 'async_trait,
'life0: 'async_trait,
Execute a
http_request_derive::HttpRequest, and read the typed response.Source§impl Clone for ReqwestClient
impl Clone for ReqwestClient
Source§fn clone(&self) -> ReqwestClient
fn clone(&self) -> ReqwestClient
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ReqwestClient
impl !RefUnwindSafe for ReqwestClient
impl Send for ReqwestClient
impl Sync for ReqwestClient
impl Unpin for ReqwestClient
impl !UnwindSafe for ReqwestClient
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