Trait ClientStream

Source
pub trait ClientStream: RequestWriter + ResponseReader {
    // Provided method
    fn handle<'life0, 'async_trait>(
        &'life0 mut self,
        req: Request,
    ) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait { ... }
}
Available on crate feature client only.
Expand description

The client stream trait.

Provided Methods§

Source

fn handle<'life0, 'async_trait>( &'life0 mut self, req: Request, ) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait,

Implementors§