pub trait PtListener: Send + Unpin {
    // Required method
    fn next<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(Box<dyn PtStream>, Url)>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Wrapper trait for async listeners

Required Methods§

source

fn next<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(Box<dyn PtStream>, Url)>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

source§

impl PtListener for (TlsAcceptor, TcpListener)

source§

fn next<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(Box<dyn PtStream>, Url)>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

impl PtListener for TcpListener

source§

fn next<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(Box<dyn PtStream>, Url)>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

impl PtListener for UnixListener

source§

fn next<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(Box<dyn PtStream>, Url)>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§