We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36aa75e commit 084b71aCopy full SHA for 084b71a
library/std/src/fs.rs
@@ -85,6 +85,12 @@ use crate::time::SystemTime;
85
/// by different processes. Avoid assuming that holding a `&File` means that the
86
/// file will not change.
87
///
88
+/// # Platform-specific behavior
89
+///
90
+/// On Windows, the implementation of [`Read`] and [`Write`] traits for `File`
91
+/// perform synchronous I/O operations. Therefore the underlying file must not
92
+/// have been opened for asynchronous I/O (e.g. by using `FILE_FLAG_OVERLAPPED`).
93
94
/// [`BufReader<R>`]: io::BufReader
95
/// [`sync_all`]: File::sync_all
96
#[stable(feature = "rust1", since = "1.0.0")]
0 commit comments