pub trait EndpointAsync: Endpoint {
// Provided methods
fn reqwest_client_async<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 Client,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, HttpError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn reqwest_async<'life0, 'life1, 'async_trait>(
&'life0 self,
token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, HttpError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}Provided Methods§
Sourcefn reqwest_client_async<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 Client,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, HttpError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn reqwest_client_async<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 Client,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, HttpError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Uses an async reqwest client to make the API call and handle the response.
The assumption is made that the token is part of the default headers
Requires the reqwest and async features to be enabled
Sourcefn reqwest_async<'life0, 'life1, 'async_trait>(
&'life0 self,
token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, HttpError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn reqwest_async<'life0, 'life1, 'async_trait>(
&'life0 self,
token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, HttpError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Creates an async reqwest client to make the API call and handle the response
Requires the reqwest and async features to be enabled
Implementors§
impl EndpointAsync for AllowanceCheckURL
Available on crate features
async only.impl EndpointAsync for AreaInfoURL
Available on crate features
async only.impl EndpointAsync for AreasNearbyURL
Available on crate features
async only.impl EndpointAsync for AreaSearchURL
Available on crate features
async only.impl EndpointAsync for EskomStatusUrl
Available on crate features
async only.impl EndpointAsync for TopicsNearbyUrl
Available on crate features
async only.