Trait ListenerExt

Source
pub trait ListenerExt: Listener {
    // Required method
    fn accept<'a>(&'a self) -> Accept<'a, Self>
       where Self: Sized;
}

Required Methods§

Source

fn accept<'a>(&'a self) -> Accept<'a, Self>
where Self: Sized,

Equivalent to async fn accept(&self) -> io::Result<(Self::Stream, SocketAddr)>

Implementors§

Source§

impl<L> ListenerExt for L
where L: Listener,