pub struct UnixListener { /* private fields */ }
Expand description

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

Implementations

Creates a new UnixListener bound to the specific path.

The listener will be set to non-blocking mode.

Accepts a new incoming connection to this listener.

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

Returns the local socket address for 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

Register self with the given Poll instance. Read more

Re-register self with the given Poll instance. Read more

Deregister self from the given Poll instance Read more

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.

Constructs a new instance of Self from the given raw file descriptor. Read more

Consumes this object, returning the raw underlying file descriptor. Read more

The type returned in the event of a conversion error.

Performs the conversion.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more