#[repr(C, align(4))]
pub union WireOptionalDriverChannel {
/* private fields */
}
Expand description
The FIDL wire type for optional DriverChannel
s.
This type follows the FIDL wire format for handles, and is separate from the Zircon handle optional wire type. This ensures that we never confuse the two types when using FIDL.
Implementations§
Source§impl WireOptionalDriverChannel
impl WireOptionalDriverChannel
Sourcepub fn set_encoded_present(out: &mut MaybeUninit<Self>)
pub fn set_encoded_present(out: &mut MaybeUninit<Self>)
Encodes a driver 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 driver handle as absent in an output.
Sourcepub fn as_raw_handle(&self) -> Option<fdf_handle_t>
pub fn as_raw_handle(&self) -> Option<fdf_handle_t>
Returns the underlying fdf_handle_t
, if any.
Trait Implementations§
Source§impl<D: HandleDecoder + ?Sized> Decode<D> for WireOptionalDriverChannel
impl<D: HandleDecoder + ?Sized> Decode<D> for WireOptionalDriverChannel
Source§impl Drop for WireOptionalDriverChannel
impl Drop for WireOptionalDriverChannel
Source§impl FromWireOption<WireOptionalDriverChannel> for DriverChannel
impl FromWireOption<WireOptionalDriverChannel> for DriverChannel
Source§fn from_wire_option(wire: WireOptionalDriverChannel) -> Option<Self>
fn from_wire_option(wire: WireOptionalDriverChannel) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl Wire for WireOptionalDriverChannel
impl Wire for WireOptionalDriverChannel
Source§type Decoded<'de> = WireOptionalDriverChannel
type Decoded<'de> = WireOptionalDriverChannel
The decoded wire type, restricted to the
'de
lifetime.Source§fn zero_padding(_: &mut MaybeUninit<Self>)
fn zero_padding(_: &mut MaybeUninit<Self>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl Freeze for WireOptionalDriverChannel
impl RefUnwindSafe for WireOptionalDriverChannel
impl Send for WireOptionalDriverChannel
impl Sync for WireOptionalDriverChannel
impl Unpin for WireOptionalDriverChannel
impl UnwindSafe for WireOptionalDriverChannel
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