Skip to main content

Owned

Struct Owned 

Source
pub struct Owned(/* private fields */);
Expand description

[docs.microsoft.com] Owned HANDLE to a kernel object (will CloseHandle on Drop)

Trait Implementations§

Source§

impl AsLocalHandleNN for Owned

Source§

fn as_handle_nn(&self) -> NonNull<c_void>

HANDLE, but NonNull.
Source§

impl<'a> AsRef<Borrowed<'a>> for &'a Owned

Source§

fn as_ref(&self) -> &Borrowed<'a>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Owned> for OwnedHandle

Source§

fn as_ref(&self) -> &Owned

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Owned> for Owned

Source§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Owned> for OwnedHandle

Source§

fn as_ref(&self) -> &Owned

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Owned> for File

Source§

fn as_ref(&self) -> &Owned

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Owned> for ReadPipe

Source§

fn as_ref(&self) -> &Owned

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Owned> for WritePipe

Source§

fn as_ref(&self) -> &Owned

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Owned> for OwnedHandle

Source§

fn as_ref(&self) -> &Owned

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Owned> for OwnedHandle

Source§

fn as_ref(&self) -> &Owned

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Owned> for OwnedHandle

Source§

fn as_ref(&self) -> &Owned

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Owned> for OwnedHandle

Source§

fn as_ref(&self) -> &Owned

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<'a> AsRef<Psuedo<'a>> for &'a Owned

Source§

fn as_ref(&self) -> &Psuedo<'a>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Debug for Owned

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for Owned

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl<'a> From<&'a File> for &'a Owned

Source§

fn from(h: &'a File) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Owned> for Borrowed<'a>

Source§

fn from(h: &'a Owned) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Owned> for Psuedo<'a>

Source§

fn from(h: &'a Owned) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a OwnedHandle> for &'a Owned

Source§

fn from(h: &'a OwnedHandle) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a OwnedHandle> for &'a Owned

Source§

fn from(h: &'a OwnedHandle) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a OwnedHandle> for &'a Owned

Source§

fn from(h: &'a OwnedHandle) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a OwnedHandle> for &'a Owned

Source§

fn from(h: &'a OwnedHandle) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a OwnedHandle> for &'a Owned

Source§

fn from(h: &'a OwnedHandle) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a OwnedHandle> for &'a Owned

Source§

fn from(h: &'a OwnedHandle) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a ReadPipe> for &'a Owned

Source§

fn from(h: &'a ReadPipe) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a WritePipe> for &'a Owned

Source§

fn from(h: &'a WritePipe) -> Self

Converts to this type from the input type.
Source§

impl From<File> for Owned

Source§

fn from(h: File) -> Self

Converts to this type from the input type.
Source§

impl From<OwnedHandle> for Owned

Source§

fn from(h: OwnedHandle) -> Self

Converts to this type from the input type.
Source§

impl From<OwnedHandle> for Owned

Source§

fn from(h: OwnedHandle) -> Self

Converts to this type from the input type.
Source§

impl From<OwnedHandle> for Owned

Source§

fn from(h: OwnedHandle) -> Self

Converts to this type from the input type.
Source§

impl From<OwnedHandle> for Owned

Source§

fn from(h: OwnedHandle) -> Self

Converts to this type from the input type.
Source§

impl From<OwnedHandle> for Owned

Source§

fn from(h: OwnedHandle) -> Self

Converts to this type from the input type.
Source§

impl From<OwnedHandle> for Owned

Source§

fn from(h: OwnedHandle) -> Self

Converts to this type from the input type.
Source§

impl From<ReadPipe> for Owned

Source§

fn from(h: ReadPipe) -> Self

Converts to this type from the input type.
Source§

impl From<WritePipe> for Owned

Source§

fn from(h: WritePipe) -> Self

Converts to this type from the input type.
Source§

impl FromLocalHandle for Owned

Source§

unsafe fn from_raw_nn(handle: NonNull<c_void>) -> Self

Safety Read more
Source§

unsafe fn borrow_from_raw_nn(handle: &NonNull<c_void>) -> &Self

Safety Read more
Source§

unsafe fn from_raw(handle: *mut H) -> Result<Self, Error>

Safety Read more
Source§

unsafe fn borrow_from_raw(handle: &*mut H) -> Result<&Self, Error>

Safety Read more

Auto Trait Implementations§

§

impl !Send for Owned

§

impl !Sync for Owned

§

impl Freeze for Owned

§

impl RefUnwindSafe for Owned

§

impl Unpin for Owned

§

impl UnsafeUnpin for Owned

§

impl UnwindSafe for Owned

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<H, T> AsLocalHandle<*mut H> for T
where T: AsLocalHandleNN<H>,

Source§

fn as_handle(&self) -> *mut H

winapi-friendly HANDLE
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.