openstack_sdk::api

Trait QueryAsync

Source
pub trait QueryAsync<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 OpenStack service API client that returns deserializable data. It does know nothing about required authorization, which is handled by the 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> QueryAsync<(), C> for Ignore<E>
where E: RestEndpoint + Sync, C: AsyncClient + Sync,

Source§

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

Source§

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