[][src]Struct fd_queue::mio::UnixListener

pub struct UnixListener { /* fields omitted */ }

A non-blocking Unix domain socket server with support for passing RawFd.

Implementations

impl UnixListener[src]

pub fn bind(path: impl AsRef<Path>) -> Result<UnixListener>[src]

Creates a new UnixListener bound to the specific path.

The listener will be set to non-blocking mode.

pub fn accept(&self) -> Result<(UnixStream, SocketAddr)>[src]

Accepts a new incoming conneciton to this listener.

The returned stream will be set to non-blocking mode.

pub fn local_addr(&self) -> Result<SocketAddr>[src]

Returns the local socket address for this listener.

pub fn take_error(&self) -> Result<Option<Error>>[src]

Returns the value of the SO_ERROR option.

Trait Implementations

impl AsRawFd for UnixListener[src]

impl Debug for UnixListener[src]

impl Evented for UnixListener[src]

impl FromRawFd for UnixListener[src]

Create a UnixListener from a RawFd.

This does not change the RawFd into non-blocking mode. It assumes that any such required change has already been done.

impl IntoRawFd for UnixListener[src]

impl TryFrom<UnixListener> for UnixListener[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<UnixListener> for UnixListener[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.