Struct mio::net::UnixListener[][src]

pub struct UnixListener { /* fields omitted */ }
This is supported on crate feature net only.
Expand description

A non-blocking Unix domain socket server.

Implementations

This is supported on Unix only.

Creates a new UnixListener bound to the specified socket.

This is supported on Unix only.

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.

This is supported on Unix only.

Accepts a new incoming connection to this listener.

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

This is supported on Unix only.

Returns the local socket address of this listener.

This is supported on Unix only.

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

Performs the conversion.

Performs the conversion.

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.