Trait std::os::windows::io::AsRawHandle

1.0.0 · source · []
pub trait AsRawHandle {
    fn as_raw_handle(&self) -> RawHandle;
This is supported on Windows only.
Expand description

Extracts raw handles.

Required methods

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.

However, borrowing is not strictly required. See AsHandle::as_handle for an API which strictly borrows a handle.