Trait gitlab::api::AsyncQuery

source ·
pub trait AsyncQuery<T, C>
where C: AsyncClient,
{ // Required method 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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; }
Expand description

A trait which represents an asynchronous query which may be made to a GitLab client.

Required Methods§

source

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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Perform the query asynchronously against the client.

Implementors§

source§

impl<E, C> AsyncQuery<(), C> for Ignore<E>
where E: Endpoint + Sync, C: AsyncClient + Sync,

source§

impl<E, C> AsyncQuery<Vec<u8>, C> for Raw<E>
where E: Endpoint + Sync, C: AsyncClient + Sync,

source§

impl<E, T, C> AsyncQuery<Vec<T>, C> for Paged<E>
where E: Endpoint + Sync + Pageable, T: DeserializeOwned + Send + 'static, C: AsyncClient + Sync,

source§

impl<E, T, C> AsyncQuery<T, C> for E
where E: Endpoint + Sync, T: DeserializeOwned + 'static, C: AsyncClient + Sync,