Document synchronicity
This commit is contained in:
parent
36aa75e44d
commit
084b71a54f
1 changed files with 6 additions and 0 deletions
|
@ -85,6 +85,12 @@ use crate::time::SystemTime;
|
||||||
/// by different processes. Avoid assuming that holding a `&File` means that the
|
/// by different processes. Avoid assuming that holding a `&File` means that the
|
||||||
/// file will not change.
|
/// file will not change.
|
||||||
///
|
///
|
||||||
|
/// # Platform-specific behavior
|
||||||
|
///
|
||||||
|
/// On Windows, the implementation of [`Read`] and [`Write`] traits for `File`
|
||||||
|
/// perform synchronous I/O operations. Therefore the underlying file must not
|
||||||
|
/// have been opened for asynchronous I/O (e.g. by using `FILE_FLAG_OVERLAPPED`).
|
||||||
|
///
|
||||||
/// [`BufReader<R>`]: io::BufReader
|
/// [`BufReader<R>`]: io::BufReader
|
||||||
/// [`sync_all`]: File::sync_all
|
/// [`sync_all`]: File::sync_all
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue