AsyncListener

Trait AsyncListener 

Source
pub trait AsyncListener: AsyncAccept {
    // Required method
    fn local_addr(&self) -> Result<Self::Address, Self::Error>;
}
Expand description

An AsyncListener that can also report its local address

Required Methods§

Source

fn local_addr(&self) -> Result<Self::Address, Self::Error>

The local address of the listener, if available.

Implementations on Foreign Types§

Source§

impl AsyncListener for TcpListener

Available on crate feature tokio-net only.
Source§

fn local_addr(&self) -> Result<Self::Address, Self::Error>

Source§

impl AsyncListener for UnixListener

Available on crate feature tokio-net only.
Source§

fn local_addr(&self) -> Result<Self::Address, Self::Error>

Implementors§