#[repr(C)]pub struct WireBox<'de, T> { /* private fields */ }
Expand description
A boxed (optional) FIDL value.
Implementations§
Source§impl<T> WireBox<'_, T>
impl<T> WireBox<'_, T>
Sourcepub fn encode_present(out: &mut MaybeUninit<Self>)
pub fn encode_present(out: &mut MaybeUninit<Self>)
Encodes that a value is present in an output.
Sourcepub fn encode_absent(out: &mut MaybeUninit<Self>)
pub fn encode_absent(out: &mut MaybeUninit<Self>)
Encodes that a value is absent in a slot.
Sourcepub fn into_option(self) -> Option<T>
pub fn into_option(self) -> Option<T>
Returns an Owned
of the boxed value, if any.
Trait Implementations§
Source§impl<T: Wire> Wire for WireBox<'static, T>
impl<T: Wire> Wire for WireBox<'static, T>
Source§type Decoded<'de> = WireBox<'de, <T as Wire>::Decoded<'de>>
type Decoded<'de> = WireBox<'de, <T as Wire>::Decoded<'de>>
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.
impl<T: Send> Send for WireBox<'_, T>
impl<T: Sync> Sync for WireBox<'_, T>
Auto Trait Implementations§
impl<'de, T> Freeze for WireBox<'de, T>
impl<'de, T> RefUnwindSafe for WireBox<'de, T>where
T: RefUnwindSafe,
impl<'de, T> Unpin for WireBox<'de, T>
impl<'de, T> !UnwindSafe for WireBox<'de, T>
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
Source§fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
Converts the given
wire
to an option of this type.Source§impl<T, W> FromWireOptionRef<WireBox<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<WireBox<'_, W>> for Twhere
T: FromWireRef<W>,
Source§fn from_wire_option_ref(wire: &WireBox<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &WireBox<'_, W>) -> Option<T>
Converts the given
wire
reference to an option of this type.