AsRawHandle in std::os::windows::io - Rust (original) (raw)
Trait AsRawHandle
1.0.0 · Source
pub trait AsRawHandle {
// Required method
fn as_raw_handle(&self) -> RawHandle;
}
Available on Windows only.
Expand description
Extracts raw handles.
1.0.0 · Source
Extracts the raw handle.
This function is typically used to borrow an owned handle. When used in this way, this method does not pass ownership of the raw handle to the caller, and the handle is only guaranteed to be valid while the original object has not yet been destroyed.
This function may return null, such as when called on Stdin,Stdout, or Stderr when the console is detached.
However, borrowing is not strictly required. See AsHandle::as_handlefor an API which strictly borrows a handle.