openstack_sdk::api

Trait RawQueryAsync

Source
pub trait RawQueryAsync<C>
where C: AsyncClient,
{ // Required methods fn raw_query_async<'life0, 'life1, 'async_trait>( &'life0 self, client: &'life1 C, ) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, ApiError<C::Error>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn raw_query_async_ll<'life0, 'life1, 'async_trait>( &'life0 self, client: &'life1 C, inspect_error: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, ApiError<C::Error>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn raw_query_read_body_async<'life0, 'life1, 'async_trait>( &'life0 self, client: &'life1 C, data: BoxedAsyncRead, ) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, ApiError<C::Error>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn download_async<'life0, 'life1, 'async_trait>( &'life0 self, client: &'life1 C, ) -> Pin<Box<dyn Future<Output = Result<(HeaderMap, BoxedAsyncRead), 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 and return http response. It does know nothing about required authorization, which is handled by the client.

Required Methods§

Source

fn raw_query_async<'life0, 'life1, 'async_trait>( &'life0 self, client: &'life1 C, ) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, ApiError<C::Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Perform the query asynchronously against the client.

Source

fn raw_query_async_ll<'life0, 'life1, 'async_trait>( &'life0 self, client: &'life1 C, inspect_error: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, ApiError<C::Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Perform the low level query asynchronously against the client.

Source

fn raw_query_read_body_async<'life0, 'life1, 'async_trait>( &'life0 self, client: &'life1 C, data: BoxedAsyncRead, ) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, ApiError<C::Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Perform the query asynchronously against the client.

Source

fn download_async<'life0, 'life1, 'async_trait>( &'life0 self, client: &'life1 C, ) -> Pin<Box<dyn Future<Output = Result<(HeaderMap, BoxedAsyncRead), ApiError<C::Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Perform async call and return response headers with AsyncRead of the body

Implementors§

Source§

impl<E, C> RawQueryAsync<C> for E
where E: RestEndpoint + Sync, C: AsyncClient + Sync,

Raw Query Async implementation