#[repr(C)]pub struct WireBox<T> { /* private fields */ }
Expand description
A boxed (optional) FIDL value.
Implementations§
Source§impl<T> WireBox<T>
impl<T> WireBox<T>
Sourcepub fn encode_present(slot: Slot<'_, Self>)
pub fn encode_present(slot: Slot<'_, Self>)
Encodes that a value is present in a slot.
Sourcepub fn encode_absent(slot: Slot<'_, Self>)
pub fn encode_absent(slot: Slot<'_, Self>)
Encodes that a value is absent in a slot.
Trait Implementations§
Source§impl<T: TakeFrom<WT>, WT> TakeFrom<WireBox<WT>> for Option<T>
impl<T: TakeFrom<WT>, WT> TakeFrom<WireBox<WT>> for Option<T>
Source§fn take_from(from: &WireBox<WT>) -> Self
fn take_from(from: &WireBox<WT>) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.Source§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreSource§impl<T> ZeroPadding for WireBox<T>
impl<T> ZeroPadding for WireBox<T>
Source§unsafe fn zero_padding(_: *mut Self)
unsafe fn zero_padding(_: *mut Self)
Writes zeroes to the padding for this type, if any. Read more
impl<T: Send> Send for WireBox<T>
impl<T: Sync> Sync for WireBox<T>
Auto Trait Implementations§
impl<T> Freeze for WireBox<T>
impl<T> RefUnwindSafe for WireBox<T>where
T: RefUnwindSafe,
impl<T> Unpin for WireBox<T>
impl<T> UnwindSafe for WireBox<T>where
T: RefUnwindSafe,
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