Trait std::os::windows::io::IntoRawHandle 1.4.0[−][src]
pub trait IntoRawHandle {
fn into_raw_handle(self) -> RawHandle;
}
This is supported on Windows only.
Expand description
一个 trait,表示消费一个对象并获得其原始 HANDLE
所有权的能力。
Required methods
fn into_raw_handle(self) -> RawHandle
fn into_raw_handle(self) -> RawHandle
消耗此对象,返回原始底层句柄。
该函数将底层句柄的所有权转让给调用者。 这样,调用者便是该句柄的唯一所有者,一旦不再需要该句柄,则必须将其关闭。