pub union OptionalDriverChannel {
/* private fields */
}Expand description
The FIDL wire type for optional DriverChannels.
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 OptionalDriverChannel
impl OptionalDriverChannel
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 Constrained for OptionalDriverChannel
impl Constrained for OptionalDriverChannel
Source§impl<D: HandleDecoder + ?Sized> Decode<D> for OptionalDriverChannel
impl<D: HandleDecoder + ?Sized> Decode<D> for OptionalDriverChannel
Source§impl Drop for OptionalDriverChannel
impl Drop for OptionalDriverChannel
Source§impl<E: HandleEncoder + ?Sized> EncodeOption<OptionalDriverChannel, E> for DriverChannel
impl<E: HandleEncoder + ?Sized> EncodeOption<OptionalDriverChannel, E> for DriverChannel
Source§fn encode_option(
this: Option<Self>,
encoder: &mut E,
out: &mut MaybeUninit<OptionalDriverChannel>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut E, out: &mut MaybeUninit<OptionalDriverChannel>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl FromWireOption<OptionalDriverChannel> for DriverChannel
impl FromWireOption<OptionalDriverChannel> for DriverChannel
Source§fn from_wire_option(wire: OptionalDriverChannel) -> Option<Self>
fn from_wire_option(wire: OptionalDriverChannel) -> Option<Self>
Converts the given owned value to an option of this type.
Source§impl IntoNatural for OptionalDriverChannel
impl IntoNatural for OptionalDriverChannel
Source§type Natural = Option<DriverChannel>
type Natural = Option<DriverChannel>
A good default type for this wire type to convert into.
§fn into_natural(self) -> Self::Natural
fn into_natural(self) -> Self::Natural
Converts this type into its natural equivalent.
Source§impl Wire for OptionalDriverChannel
impl Wire for OptionalDriverChannel
Source§type Narrowed<'de> = OptionalDriverChannel
type Narrowed<'de> = OptionalDriverChannel
The narrowed 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 OptionalDriverChannel
impl RefUnwindSafe for OptionalDriverChannel
impl Send for OptionalDriverChannel
impl Sync for OptionalDriverChannel
impl Unpin for OptionalDriverChannel
impl UnsafeUnpin for OptionalDriverChannel
impl UnwindSafe for OptionalDriverChannel
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]