pub trait UnixListenerExt: AsRawFd + FromRawFd {
    type Conn: FromRawFd;
    fn bind_unix_addr(on: &UnixSocketAddr) -> Result<Self, Error>;
fn accept_unix_addr(&self) -> Result<(Self::Conn, UnixSocketAddr), Error>; fn local_unix_addr(&self) -> Result<UnixSocketAddr, Error> { ... } }
Expand description

Extension trait for using UnixSocketAddr with UnixListener types.

Associated Types

The type represeting the stream connection returned by accept_unix_addr().

Required methods

Creates a socket bound to a UnixSocketAddr and starts listening on it.

Accepts a connection and returns the client’s address as an uds::UnixSocketAddr.

Provided methods

Returns the address this socket is listening on.

Implementors