#[repr(u8)]pub enum WireEmptyStructPlaceholder {
Zero = 0,
}
Expand description
An empty struct’s wire representation. C/C++ memory layout rules (and hence FIDL wire rules) require every object to have a unique address so we have to make a single, tiny type for empty structs.
Variants§
Zero = 0
Empty structs are represented as a single 0u8.
Trait Implementations§
Source§impl Clone for WireEmptyStructPlaceholder
impl Clone for WireEmptyStructPlaceholder
Source§fn clone(&self) -> WireEmptyStructPlaceholder
fn clone(&self) -> WireEmptyStructPlaceholder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WireEmptyStructPlaceholder
impl Debug for WireEmptyStructPlaceholder
Source§impl Wire for WireEmptyStructPlaceholder
impl Wire for WireEmptyStructPlaceholder
Source§type Decoded<'de> = WireEmptyStructPlaceholder
type Decoded<'de> = WireEmptyStructPlaceholder
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 Copy for WireEmptyStructPlaceholder
Auto Trait Implementations§
impl Freeze for WireEmptyStructPlaceholder
impl RefUnwindSafe for WireEmptyStructPlaceholder
impl Send for WireEmptyStructPlaceholder
impl Sync for WireEmptyStructPlaceholder
impl Unpin for WireEmptyStructPlaceholder
impl UnwindSafe for WireEmptyStructPlaceholder
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