AsyncClient

Trait AsyncClient 

Source
pub trait AsyncClient: RestClient {
    // Required method
    fn rest_async(
        &self,
        request: RequestBuilder,
        body: Vec<u8>,
    ) -> impl Future<Output = Result<Response<Bytes>, ApiError<Self::Error>>> + Send;
}
Expand description

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

Required Methods§

Source

fn rest_async( &self, request: RequestBuilder, body: Vec<u8>, ) -> impl Future<Output = Result<Response<Bytes>, ApiError<Self::Error>>> + Send

Send a REST query asynchronously.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§