AsyncApiClient

Trait AsyncApiClient 

Source
pub trait AsyncApiClient {
    // Required method
    fn request<'life0, 'life1, 'async_trait, ResultType, QueryType, BodyType>(
        &'life0 self,
        endpoint: &'life1 (dyn Endpoint<ResultType, QueryType, BodyType> + Send + Sync),
    ) -> Pin<Box<dyn Future<Output = Result<ResultType>> + Send + 'async_trait>>
       where ResultType: ApiResultTraits + 'async_trait,
             QueryType: Serialize + 'async_trait,
             BodyType: Serialize + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn request<'life0, 'life1, 'async_trait, ResultType, QueryType, BodyType>( &'life0 self, endpoint: &'life1 (dyn Endpoint<ResultType, QueryType, BodyType> + Send + Sync), ) -> Pin<Box<dyn Future<Output = Result<ResultType>> + Send + 'async_trait>>
where ResultType: ApiResultTraits + 'async_trait, QueryType: Serialize + 'async_trait, BodyType: Serialize + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

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§