pub trait ClientConnection {
// Required methods
fn server_addr(&self) -> &SocketAddr;
fn send_data<'life0, 'life1, 'async_trait>(
&'life0 self,
buffer: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = TransportResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn send_data_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
buffers: &'life1 [Vec<u8>],
) -> Pin<Box<dyn Future<Output = TransportResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}