pub trait TNetIO: Send + Sync {
// Required methods
fn write<'life0, 'async_trait>(
&'life0 mut self,
bytes: Bytes
) -> Pin<Box<dyn Future<Output = Result<(), BytesIOError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn read<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<BytesMut, BytesIOError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn read_timeout<'life0, 'async_trait>(
&'life0 mut self,
duration: Duration
) -> Pin<Box<dyn Future<Output = Result<BytesMut, BytesIOError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_net_type(&self) -> NetType;
}