[][src]Trait uds::UnixListenerExt

pub trait UnixListenerExt: AsRawFd + FromRawFd + Sized {
    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> { ... } }

Extension trait for using UnixSocketAddr with UnixListener types.

Associated Types

Loading content...

Required methods

fn bind_unix_addr(on: &UnixSocketAddr) -> Result<Self, Error>

Create a socket bound to a UnixSocketAddr and start listening on it.

fn accept_unix_addr(&self) -> Result<(Self::Conn, UnixSocketAddr), Error>

Accept a connection and return the client's address as an uds::UnixSocketAddr.

Loading content...

Provided methods

fn local_unix_addr(&self) -> Result<UnixSocketAddr, Error>

Get the address this socket is listening on.

Loading content...

Implementations on Foreign Types

impl UnixListenerExt for UnixListener[src]

impl UnixListenerExt for UnixListener[src]

Loading content...

Implementors

Loading content...