Mention redox' behavior in doc comments

This commit is contained in:
jD91mZM2
2018-06-26 08:23:16 +02:00
parent 4bebd24fca
commit c86a7a01e2
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -197,6 +197,9 @@ pub fn set_nonblocking(&self, nonblocking: bool) -> io::Result<()> {
/// println!("Got error: {:?}", err);
/// }
/// ```
///
/// # Platform specific
/// On Redox this always returns None.
pub fn take_error(&self) -> io::Result<Option<io::Error>> {
Ok(None)
}
@@ -400,6 +403,9 @@ pub fn set_nonblocking(&self, nonblocking: bool) -> io::Result<()> {
/// println!("Got error: {:?}", err);
/// }
/// ```
///
/// # Platform specific
/// On Redox this always returns None.
pub fn take_error(&self) -> io::Result<Option<io::Error>> {
Ok(None)
}
+6
View File
@@ -524,6 +524,9 @@ pub fn set_nonblocking(&self, nonblocking: bool) -> io::Result<()> {
/// println!("Got error: {:?}", err);
/// }
/// ```
///
/// # Platform specific
/// On Redox this always returns None.
#[stable(feature = "unix_socket", since = "1.10.0")]
pub fn take_error(&self) -> io::Result<Option<io::Error>> {
self.0.take_error()
@@ -846,6 +849,9 @@ pub fn set_nonblocking(&self, nonblocking: bool) -> io::Result<()> {
/// println!("Got error: {:?}", err);
/// }
/// ```
///
/// # Platform specific
/// On Redox this always returns None.
#[stable(feature = "unix_socket", since = "1.10.0")]
pub fn take_error(&self) -> io::Result<Option<io::Error>> {
self.0.take_error()