[−][src]Struct winproc::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]
impl Debug for Handle
[src]
impl AsRawHandle for Handle
[src]
fn as_raw_handle(&self) -> RawHandle
[src]
impl IntoRawHandle for Handle
[src]
fn into_raw_handle(self) -> RawHandle
[src]
impl FromRawHandle for Handle
[src]
unsafe fn from_raw_handle(handle: RawHandle) -> 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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,