File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -902,6 +902,12 @@ impl UnixListener {
902902
903903 /// Moves the socket into or out of nonblocking mode.
904904 ///
905+ /// This will result in the `accept` operation becoming nonblocking,
906+ /// i.e., immediately returning from their calls. If the IO operation is
907+ /// successful, `Ok` is returned and no further action is required. If the
908+ /// IO operation could not be completed and needs to be retried, an error
909+ /// with kind [`io::ErrorKind::WouldBlock`] is returned.
910+ ///
905911 /// # Examples
906912 ///
907913 /// ```no_run
@@ -913,6 +919,8 @@ impl UnixListener {
913919 /// Ok(())
914920 /// }
915921 /// ```
922+ ///
923+ /// [`io::ErrorKind::WouldBlock`]: ../../../io/enum.ErrorKind.html#variant.WouldBlock
916924 #[ stable( feature = "unix_socket" , since = "1.10.0" ) ]
917925 pub fn set_nonblocking ( & self , nonblocking : bool ) -> io:: Result < ( ) > {
918926 self . 0 . set_nonblocking ( nonblocking)
You can’t perform that action at this time.
0 commit comments