We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
as_raw_handle
1 parent 4ce68c1 commit 2bb7fdbCopy full SHA for 2bb7fdb
library/std/src/os/windows/io/raw.rs
@@ -32,8 +32,15 @@ pub trait AsRawHandle {
32
/// raw handle to the caller, and the handle is only guaranteed
33
/// to be valid while the original object has not yet been destroyed.
34
///
35
+ /// This function may return null, such as when called on [`Stdin`],
36
+ /// [`Stdout`], or [`Stderr`] when the console is detached.
37
+ ///
38
/// However, borrowing is not strictly required. See [`AsHandle::as_handle`]
39
/// for an API which strictly borrows a handle.
40
41
+ /// [`Stdin`]: io::Stdin
42
+ /// [`Stdout`]: io::Stdout
43
+ /// [`Stderr`]: io::Stderr
44
#[stable(feature = "rust1", since = "1.0.0")]
45
fn as_raw_handle(&self) -> RawHandle;
46
}
0 commit comments