Trait gitlab::api::AsyncClient

source ·
pub trait AsyncClient: RestClient {
    // Required method
    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;
}
Expand description

A trait representing an asynchronous client which can communicate with a GitLab instance.

Required Methods§

source

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.

Implementors§