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§
Implementors§
impl ResponseReader for TcpHandler
Available on crate features
tcp-client
and client
only.