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 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 FromWireOption<WireOptionalHandle> for Bti
impl FromWireOption<WireOptionalHandle> for Bti
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Channel
impl FromWireOption<WireOptionalHandle> for Channel
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Clock
impl FromWireOption<WireOptionalHandle> for Clock
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Event
impl FromWireOption<WireOptionalHandle> for Event
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for EventPair
impl FromWireOption<WireOptionalHandle> for EventPair
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Exception
impl FromWireOption<WireOptionalHandle> for Exception
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Fifo
impl FromWireOption<WireOptionalHandle> for Fifo
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Guest
impl FromWireOption<WireOptionalHandle> for Guest
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Handle
impl FromWireOption<WireOptionalHandle> for Handle
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Interrupt
impl FromWireOption<WireOptionalHandle> for Interrupt
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Iob
impl FromWireOption<WireOptionalHandle> for Iob
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Iommu
impl FromWireOption<WireOptionalHandle> for Iommu
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Job
impl FromWireOption<WireOptionalHandle> for Job
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Pager
impl FromWireOption<WireOptionalHandle> for Pager
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Pmt
impl FromWireOption<WireOptionalHandle> for Pmt
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Port
impl FromWireOption<WireOptionalHandle> for Port
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Process
impl FromWireOption<WireOptionalHandle> for Process
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Profile
impl FromWireOption<WireOptionalHandle> for Profile
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Resource
impl FromWireOption<WireOptionalHandle> for Resource
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Socket
impl FromWireOption<WireOptionalHandle> for Socket
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Stream
impl FromWireOption<WireOptionalHandle> for Stream
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Thread
impl FromWireOption<WireOptionalHandle> for Thread
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Timer
impl FromWireOption<WireOptionalHandle> for Timer
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Vcpu
impl FromWireOption<WireOptionalHandle> for Vcpu
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Vmar
impl FromWireOption<WireOptionalHandle> for Vmar
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl FromWireOption<WireOptionalHandle> for Vmo
impl FromWireOption<WireOptionalHandle> for Vmo
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl Wire for WireOptionalHandle
impl Wire for WireOptionalHandle
Source§type Decoded<'de> = WireOptionalHandle
type Decoded<'de> = WireOptionalHandle
The decoded wire type, restricted to the
'de
lifetime.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