[][src]Struct winproc::Handle

pub struct Handle(_);

An owning wrapper over a Windows handle.

Will close the inner handle on drop.

Methods

impl Handle[src]

pub unsafe fn new(handle: HANDLE) -> Handle[src]

Takes ownership of a raw handle.

pub unsafe fn duplicate_from(handle: HANDLE) -> WinResult<Handle>[src]

Duplicates a handle without taking ownership.

Trait Implementations

impl Drop for Handle[src]

impl Deref for Handle[src]

type Target = HANDLE

The resulting type after dereferencing.

impl Debug for Handle[src]

impl AsRawHandle for Handle[src]

impl IntoRawHandle for Handle[src]

impl FromRawHandle for Handle[src]

Auto Trait Implementations

impl !Sync for Handle

impl !Send for Handle

impl Unpin for Handle

impl RefUnwindSafe for Handle

impl UnwindSafe for Handle

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]