diff options
Diffstat (limited to 'tokio/src/net/unix/listener.rs')
-rw-r--r-- | tokio/src/net/unix/listener.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tokio/src/net/unix/listener.rs b/tokio/src/net/unix/listener.rs index 4e0d9ede..8f0d4c0b 100644 --- a/tokio/src/net/unix/listener.rs +++ b/tokio/src/net/unix/listener.rs @@ -68,11 +68,12 @@ impl UnixListener { Ok(UnixListener { io }) } - /// Consumes a `UnixListener` in the standard library and returns a - /// nonblocking `UnixListener` from this crate. + /// Creates new `UnixListener` from a `std::os::unix::net::UnixListener `. /// - /// The returned listener will be associated with the given event loop - /// specified by `handle` and is ready to perform I/O. + /// This function is intended to be used to wrap a UnixListener from the + /// standard library in the Tokio equivalent. The conversion assumes + /// nothing about the underlying listener; it is left up to the user to set + /// it in non-blocking mode. /// /// # Panics /// |