pub struct ReqwestClient(/* private fields */);
Expand description
Default executor based on the reqwest HTTP client.
Implementations§
Trait Implementations§
Source§impl BulkExecutor for &ReqwestClient
impl BulkExecutor for &ReqwestClient
type Error = Error
Source§fn execute<R>(
self,
requests: impl IntoIterator<Item = R>,
) -> impl Stream<Item = (R::Discriminant, Result<ApiResponse, Self::Error>)>where
R: IntoRequest,
fn execute<R>(
self,
requests: impl IntoIterator<Item = R>,
) -> impl Stream<Item = (R::Discriminant, Result<ApiResponse, Self::Error>)>where
R: IntoRequest,
Generate response stream from a set of api requests.
Source§fn fetch_many<R>(
self,
requests: impl IntoIterator<Item = R>,
) -> impl Stream<Item = (R::Discriminant, Result<R::Response, Self::Error>)> + Unpinwhere
R: IntoRequest,
fn fetch_many<R>(
self,
requests: impl IntoIterator<Item = R>,
) -> impl Stream<Item = (R::Discriminant, Result<R::Response, Self::Error>)> + Unpinwhere
R: IntoRequest,
Generate a stream of deserialised responsed based on a set of api requests.
Source§impl Executor for &ReqwestClient
impl Executor for &ReqwestClient
type Error = Error
Source§async fn execute<R>(
self,
request: R,
) -> (R::Discriminant, Result<ApiResponse, Self::Error>)where
R: IntoRequest,
async fn execute<R>(
self,
request: R,
) -> (R::Discriminant, Result<ApiResponse, Self::Error>)where
R: IntoRequest,
Execute an api request.
Auto 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