Struct winproc::Handle [−][src]
pub struct Handle(_);
An owning wrapper over a Windows handle.
Will close the inner handle on drop
.
Methods
impl Handle
[src]
impl Handle
pub unsafe fn new(handle: HANDLE) -> Handle
[src]
pub unsafe fn new(handle: HANDLE) -> Handle
Takes ownership of a raw handle.
pub unsafe fn duplicate_from(handle: HANDLE) -> WinResult<Handle>
[src]
pub unsafe fn duplicate_from(handle: HANDLE) -> WinResult<Handle>
Duplicates a handle without taking ownership.
Trait Implementations
impl Debug for Handle
[src]
impl Debug for Handle
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl AsRawHandle for Handle
[src]
impl AsRawHandle for Handle
fn as_raw_handle(&self) -> HANDLE
[src]
fn as_raw_handle(&self) -> HANDLE
Extracts the raw handle, without taking any ownership.
impl Deref for Handle
[src]
impl Deref for Handle
type Target = HANDLE
The resulting type after dereferencing.
fn deref(&self) -> &HANDLE
[src]
fn deref(&self) -> &HANDLE
Dereferences the value.
impl Drop for Handle
[src]
impl Drop for Handle
impl FromRawHandle for Handle
[src]
impl FromRawHandle for Handle
unsafe fn from_raw_handle(handle: HANDLE) -> Handle
[src]
unsafe fn from_raw_handle(handle: HANDLE) -> Handle
Constructs a new I/O object from the specified raw handle. Read more
impl IntoRawHandle for Handle
[src]
impl IntoRawHandle for Handle
fn into_raw_handle(self) -> HANDLE
[src]
fn into_raw_handle(self) -> HANDLE
Consumes this object, returning the raw underlying handle. Read more