pub trait Listener: Send + Sync {
type Conn: AsyncRead + AsyncWrite + Unpin + Send + 'static;
// Required method
fn accept<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(Self::Conn, SocketAddr)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}