Trait ResponseReader

Source
pub trait ResponseReader: Send + Sync {
    // Required method
    fn read<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait to read a server response.

Describes how a response should be parsed by a client.

Required Methods§

Source

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

Read the current server response.

Implementors§

Source§

impl ResponseReader for TcpHandler

Available on crate features tcp-client and client only.