Skip to main content

CSTraitClientConnection

Trait CSTraitClientConnection 

Source
pub trait CSTraitClientConnection: Send + Sync {
    // Required method
    fn request<'life0, 'async_trait, Request, Response>(
        &'life0 mut self,
        request: Request,
    ) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>
       where Request: 'async_trait + Serialize + Send + Sync,
             Response: 'async_trait + for<'a> Deserialize<'a>,
             Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn request<'life0, 'async_trait, Request, Response>( &'life0 mut self, request: Request, ) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>
where Request: 'async_trait + Serialize + Send + Sync, Response: 'async_trait + for<'a> Deserialize<'a>, Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§