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