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§
Sourcefn local_addr(&self) -> Result<Self::Address, Self::Error>
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.
impl AsyncListener for TcpListener
Available on crate feature
tokio-net only.Source§impl AsyncListener for UnixListener
Available on crate feature tokio-net only.
impl AsyncListener for UnixListener
Available on crate feature
tokio-net only.