File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -902,6 +902,12 @@ impl UnixListener {
902
902
903
903
/// Moves the socket into or out of nonblocking mode.
904
904
///
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
+ ///
905
911
/// # Examples
906
912
///
907
913
/// ```no_run
@@ -913,6 +919,8 @@ impl UnixListener {
913
919
/// Ok(())
914
920
/// }
915
921
/// ```
922
+ ///
923
+ /// [`io::ErrorKind::WouldBlock`]: ../../../io/enum.ErrorKind.html#variant.WouldBlock
916
924
#[ stable( feature = "unix_socket" , since = "1.10.0" ) ]
917
925
pub fn set_nonblocking ( & self , nonblocking : bool ) -> io:: Result < ( ) > {
918
926
self . 0 . set_nonblocking ( nonblocking)
You can’t perform that action at this time.
0 commit comments