Union WireHandle
#[repr(C, align(4))]
pub union WireHandle {
/* private fields */
}
Expand description
A Zircon handle.
Implementations§
§impl WireHandle
impl WireHandle
pub fn set_encoded_present(out: &mut MaybeUninit<WireHandle>)
pub fn set_encoded_present(out: &mut MaybeUninit<WireHandle>)
Encodes a handle as present in an output.
pub fn is_invalid(&self) -> bool
pub fn is_invalid(&self) -> bool
Returns whether the underlying zx_handle_t
is invalid.
pub fn as_raw_handle(&self) -> u32
pub fn as_raw_handle(&self) -> u32
Returns the underlying zx_handle_t
.
Trait Implementations§
§impl Debug for WireHandle
impl Debug for WireHandle
§impl<D> Decode<D> for WireHandlewhere
D: HandleDecoder + ?Sized,
impl<D> Decode<D> for WireHandlewhere
D: HandleDecoder + ?Sized,
§fn decode(
slot: Slot<'_, WireHandle>,
decoder: &mut D,
) -> Result<(), DecodeError>
fn decode( slot: Slot<'_, WireHandle>, decoder: &mut D, ) -> Result<(), DecodeError>
Decodes a value into a slot using a decoder. Read more
§impl FromWire<WireHandle> for Bti
impl FromWire<WireHandle> for Bti
§fn from_wire(wire: WireHandle) -> Bti
fn from_wire(wire: WireHandle) -> Bti
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Channel
impl FromWire<WireHandle> for Channel
§fn from_wire(wire: WireHandle) -> Channel
fn from_wire(wire: WireHandle) -> Channel
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Clock
impl FromWire<WireHandle> for Clock
§fn from_wire(wire: WireHandle) -> Clock
fn from_wire(wire: WireHandle) -> Clock
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Event
impl FromWire<WireHandle> for Event
§fn from_wire(wire: WireHandle) -> Event
fn from_wire(wire: WireHandle) -> Event
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for EventPair
impl FromWire<WireHandle> for EventPair
§fn from_wire(wire: WireHandle) -> EventPair
fn from_wire(wire: WireHandle) -> EventPair
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Exception
impl FromWire<WireHandle> for Exception
§fn from_wire(wire: WireHandle) -> Exception
fn from_wire(wire: WireHandle) -> Exception
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Fifo
impl FromWire<WireHandle> for Fifo
§fn from_wire(wire: WireHandle) -> Fifo
fn from_wire(wire: WireHandle) -> Fifo
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Guest
impl FromWire<WireHandle> for Guest
§fn from_wire(wire: WireHandle) -> Guest
fn from_wire(wire: WireHandle) -> Guest
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Handle
impl FromWire<WireHandle> for Handle
§fn from_wire(wire: WireHandle) -> Handle
fn from_wire(wire: WireHandle) -> Handle
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Interrupt
impl FromWire<WireHandle> for Interrupt
§fn from_wire(wire: WireHandle) -> Interrupt
fn from_wire(wire: WireHandle) -> Interrupt
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Iob
impl FromWire<WireHandle> for Iob
§fn from_wire(wire: WireHandle) -> Iob
fn from_wire(wire: WireHandle) -> Iob
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Iommu
impl FromWire<WireHandle> for Iommu
§fn from_wire(wire: WireHandle) -> Iommu
fn from_wire(wire: WireHandle) -> Iommu
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Job
impl FromWire<WireHandle> for Job
§fn from_wire(wire: WireHandle) -> Job
fn from_wire(wire: WireHandle) -> Job
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Pager
impl FromWire<WireHandle> for Pager
§fn from_wire(wire: WireHandle) -> Pager
fn from_wire(wire: WireHandle) -> Pager
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Pmt
impl FromWire<WireHandle> for Pmt
§fn from_wire(wire: WireHandle) -> Pmt
fn from_wire(wire: WireHandle) -> Pmt
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Port
impl FromWire<WireHandle> for Port
§fn from_wire(wire: WireHandle) -> Port
fn from_wire(wire: WireHandle) -> Port
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Process
impl FromWire<WireHandle> for Process
§fn from_wire(wire: WireHandle) -> Process
fn from_wire(wire: WireHandle) -> Process
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Profile
impl FromWire<WireHandle> for Profile
§fn from_wire(wire: WireHandle) -> Profile
fn from_wire(wire: WireHandle) -> Profile
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Resource
impl FromWire<WireHandle> for Resource
§fn from_wire(wire: WireHandle) -> Resource
fn from_wire(wire: WireHandle) -> Resource
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Socket
impl FromWire<WireHandle> for Socket
§fn from_wire(wire: WireHandle) -> Socket
fn from_wire(wire: WireHandle) -> Socket
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Stream
impl FromWire<WireHandle> for Stream
§fn from_wire(wire: WireHandle) -> Stream ⓘ
fn from_wire(wire: WireHandle) -> Stream ⓘ
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Thread
impl FromWire<WireHandle> for Thread
§fn from_wire(wire: WireHandle) -> Thread
fn from_wire(wire: WireHandle) -> Thread
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Timer
impl FromWire<WireHandle> for Timer
§fn from_wire(wire: WireHandle) -> Timer
fn from_wire(wire: WireHandle) -> Timer
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Vcpu
impl FromWire<WireHandle> for Vcpu
§fn from_wire(wire: WireHandle) -> Vcpu
fn from_wire(wire: WireHandle) -> Vcpu
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Vmar
impl FromWire<WireHandle> for Vmar
§fn from_wire(wire: WireHandle) -> Vmar
fn from_wire(wire: WireHandle) -> Vmar
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl FromWire<WireHandle> for Vmo
impl FromWire<WireHandle> for Vmo
§fn from_wire(wire: WireHandle) -> Vmo
fn from_wire(wire: WireHandle) -> Vmo
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§impl Wire for WireHandle
impl Wire for WireHandle
§type Decoded<'de> = WireHandle
type Decoded<'de> = WireHandle
The decoded wire type, restricted to the
'de
lifetime.§fn zero_padding(_: &mut MaybeUninit<WireHandle>)
fn zero_padding(_: &mut MaybeUninit<WireHandle>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl Freeze for WireHandle
impl RefUnwindSafe for WireHandle
impl Send for WireHandle
impl Sync for WireHandle
impl Unpin for WireHandle
impl UnwindSafe for WireHandle
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