pub trait Transport {
type Conn: Connection + Send;
// Required method
fn connect<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<Self::Conn>> + Send + 'async_trait>>
where Self: 'async_trait;
}
pub trait Transport {
type Conn: Connection + Send;
// Required method
fn connect<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<Self::Conn>> + Send + 'async_trait>>
where Self: 'async_trait;
}