pub trait AsyncClient: RestClient {
// Required methods
fn rest_async<'life0, 'async_trait>(
&'life0 self,
request: RequestBuilder,
body: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, ApiError<Self::Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn rest_read_body_async<'life0, 'async_trait>(
&'life0 self,
request: RequestBuilder,
body: BoxedAsyncRead,
) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, ApiError<Self::Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn download_async<'life0, 'async_trait>(
&'life0 self,
request: RequestBuilder,
body: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<(HeaderMap, BoxedAsyncRead), ApiError<Self::Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
A trait representing an asynchronous client which can communicate with OpenStack cloud.
Required Methods§
Sourcefn rest_async<'life0, 'async_trait>(
&'life0 self,
request: RequestBuilder,
body: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, ApiError<Self::Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn rest_async<'life0, 'async_trait>(
&'life0 self,
request: RequestBuilder,
body: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, ApiError<Self::Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a REST query asynchronously.
Sourcefn rest_read_body_async<'life0, 'async_trait>(
&'life0 self,
request: RequestBuilder,
body: BoxedAsyncRead,
) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, ApiError<Self::Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn rest_read_body_async<'life0, 'async_trait>(
&'life0 self,
request: RequestBuilder,
body: BoxedAsyncRead,
) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, ApiError<Self::Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a REST query asynchronously.
Sourcefn download_async<'life0, 'async_trait>(
&'life0 self,
request: RequestBuilder,
body: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<(HeaderMap, BoxedAsyncRead), ApiError<Self::Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn download_async<'life0, 'async_trait>(
&'life0 self,
request: RequestBuilder,
body: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<(HeaderMap, BoxedAsyncRead), ApiError<Self::Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a REST query asynchronously and return body as AsyncRead.