Trait porkbun_rs::api::AsyncQuery [−][src]
pub trait AsyncQuery<T, C> where
C: AsyncClient, { #[must_use] fn query_async<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<T, ApiError<C::Error>>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; }
Expand description
A trait which represents an asynchronous query which may be made to a Porkbun client.
Required methods
Perform the query asynchronously against the client.
Implementors
impl<E, T, C> AsyncQuery<T, C> for E where
E: Endpoint + Sync,
T: DeserializeOwned + 'static,
C: AsyncClient + Sync,
[src]
impl<E, T, C> AsyncQuery<T, C> for E where
E: Endpoint + Sync,
T: DeserializeOwned + 'static,
C: AsyncClient + Sync,
[src]