pub struct WireOptionalHandle { /* private fields */ }
Expand description
An optional Zircon handle.
Implementations§
Source§impl WireOptionalHandle
impl WireOptionalHandle
Sourcepub fn set_encoded_present(slot: Slot<'_, Self>)
pub fn set_encoded_present(slot: Slot<'_, Self>)
Encodes a handle as present in a slot.
Sourcepub fn set_encoded_absent(slot: Slot<'_, Self>)
pub fn set_encoded_absent(slot: Slot<'_, Self>)
Encodes a handle as absent in a slot.
Sourcepub fn take(&mut self) -> Option<Handle>
pub fn take(&mut 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 TakeFrom<WireOptionalHandle> for Option<Handle>
impl TakeFrom<WireOptionalHandle> for Option<Handle>
Source§fn take_from(from: &mut WireOptionalHandle) -> Self
fn take_from(from: &mut WireOptionalHandle) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.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