about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorCarsten Andrich <carsten.andrich@tu-ilmenau.de>2020-05-01 17:52:16 +0200
committerCarsten Andrich <carsten.andrich@tu-ilmenau.de>2020-05-01 17:52:16 +0200
commitc88e6a75f5f681610142aaba351cdd6e30deed95 (patch)
tree358b4df1f908b00ed2e55f7eb9fc6139c291105e /src/libstd/io
parentbd0bacc694d7d8175804bb6f690cb846bfa4a9ee (diff)
downloadrust-c88e6a75f5f681610142aaba351cdd6e30deed95.tar.gz
rust-c88e6a75f5f681610142aaba351cdd6e30deed95.zip
add Windows system error codes that map to io::ErrorKind::TimedOut
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/error.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstd/io/error.rs b/src/libstd/io/error.rs
index d80a38819ea..f7248e7547e 100644
--- a/src/libstd/io/error.rs
+++ b/src/libstd/io/error.rs
@@ -160,6 +160,11 @@ pub enum ErrorKind {
     #[stable(feature = "rust1", since = "1.0.0")]
     Interrupted,
     /// Any I/O error not part of this list.
+    ///
+    /// Errors that are `Other` now may move to a different or a new
+    /// [`ErrorKind`] variant in the future. It is not recommended to match
+    /// an error against `Other` and to expect any additional characteristics,
+    /// e.g., a specific [`Error::raw_os_error`] return value.
     #[stable(feature = "rust1", since = "1.0.0")]
     Other,