Struct mio::net::UnixListener [−][src]
pub struct UnixListener { /* fields omitted */ }
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
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
Auto Trait Implementations
impl RefUnwindSafe for UnixListener
impl Send for UnixListener
impl Sync for UnixListener
impl Unpin for UnixListener
impl UnwindSafe for UnixListener