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;
}

Required Associated Types§

Required Methods§

source

fn connect<'async_trait>( self ) -> Pin<Box<dyn Future<Output = Result<Self::Conn>> + Send + 'async_trait>>
where Self: 'async_trait,

Implementors§