pub struct UnixListener { /* private fields */ }
Available on crate feature net only.
Expand description

A non-blocking Unix domain socket server.

Implementations

Creates a new UnixListener bound to the specified socket.

Creates a new UnixListener from a standard net::UnixListener.

This function is intended to be used to wrap a Unix listener from the standard library in the Mio equivalent. The conversion assumes nothing about the underlying listener; it is left up to the user to set it in non-blocking mode.

Accepts a new incoming connection to this listener.

The call is responsible for ensuring that the listening socket is in non-blocking mode.

Returns the local socket address of this listener.

Returns the value of the SO_ERROR option.

Trait Implementations

Extracts the raw file descriptor. Read more
Formats the value using the given formatter. Read more

Converts a RawFd to a UnixListener.

Notes

The caller is responsible for ensuring that the socket is in non-blocking mode.

Consumes this object, returning the raw underlying file descriptor. Read more
Register self with the given Registry instance. Read more
Re-register self with the given Registry instance. Read more
Deregister self from the given Registry instance. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.