pub struct WireOptionalHandle { /* private fields */ }
Expand description
An optional Zircon handle.
Implementations§
Source§impl WireOptionalHandle
impl WireOptionalHandle
Sourcepub fn set_encoded_present(out: &mut MaybeUninit<Self>)
pub fn set_encoded_present(out: &mut MaybeUninit<Self>)
Encodes a handle as present in a slot.
Sourcepub fn set_encoded_absent(out: &mut MaybeUninit<Self>)
pub fn set_encoded_absent(out: &mut MaybeUninit<Self>)
Encodes a handle as absent in an output.
Sourcepub fn take(&self) -> Option<Handle>
pub fn take(&self) -> Option<Handle>
Takes the handle, if any, leaving an invalid handle in its place.
Sourcepub fn as_raw_handle(&self) -> Option<zx_handle_t>
pub fn as_raw_handle(&self) -> Option<zx_handle_t>
Returns the underlying zx_handle_t
, if any.
Trait Implementations§
Source§impl Debug for WireOptionalHandle
impl Debug for WireOptionalHandle
Source§impl<D: HandleDecoder + ?Sized> Decode<D> for WireOptionalHandle
impl<D: HandleDecoder + ?Sized> Decode<D> for WireOptionalHandle
Source§impl TakeFrom<WireOptionalHandle> for Option<Handle>
impl TakeFrom<WireOptionalHandle> for Option<Handle>
Source§fn take_from(from: &WireOptionalHandle) -> Self
fn take_from(from: &WireOptionalHandle) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.Source§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreSource§impl ZeroPadding for WireOptionalHandle
impl ZeroPadding for WireOptionalHandle
Source§fn zero_padding(out: &mut MaybeUninit<Self>)
fn zero_padding(out: &mut MaybeUninit<Self>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl !Freeze for WireOptionalHandle
impl !RefUnwindSafe for WireOptionalHandle
impl Send for WireOptionalHandle
impl !Sync for WireOptionalHandle
impl Unpin for WireOptionalHandle
impl UnwindSafe for WireOptionalHandle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more