Struct WireOptionalGuest
pub struct WireOptionalGuest { /* private fields */ }
Expand description
An optional Zircon Guest.
Implementations§
§impl WireOptionalGuest
impl WireOptionalGuest
pub fn set_encoded_present(out: &mut MaybeUninit<WireOptionalGuest>)
pub fn set_encoded_present(out: &mut MaybeUninit<WireOptionalGuest>)
Encodes a Guest as present in an output.
pub fn set_encoded_absent(out: &mut MaybeUninit<WireOptionalGuest>)
pub fn set_encoded_absent(out: &mut MaybeUninit<WireOptionalGuest>)
Encodes a Guest as absent in an output.
pub fn as_raw_handle(&self) -> Option<u32>
pub fn as_raw_handle(&self) -> Option<u32>
Returns the underlying zx_handle_t
, if any.
Trait Implementations§
§impl Debug for WireOptionalGuest
impl Debug for WireOptionalGuest
§impl<D> Decode<D> for WireOptionalGuestwhere
D: HandleDecoder + ?Sized,
impl<D> Decode<D> for WireOptionalGuestwhere
D: HandleDecoder + ?Sized,
§fn decode(
slot: Slot<'_, WireOptionalGuest>,
decoder: &mut D,
) -> Result<(), DecodeError>
fn decode( slot: Slot<'_, WireOptionalGuest>, decoder: &mut D, ) -> Result<(), DecodeError>
Decodes a value into a slot using a decoder. Read more
§impl FromWireOption<WireOptionalGuest> for Guest
impl FromWireOption<WireOptionalGuest> for Guest
§fn from_wire_option(wire: WireOptionalGuest) -> Option<Guest>
fn from_wire_option(wire: WireOptionalGuest) -> Option<Guest>
Converts the given
wire
to an option of this type.§impl Wire for WireOptionalGuest
impl Wire for WireOptionalGuest
§type Decoded<'de> = WireOptionalGuest
type Decoded<'de> = WireOptionalGuest
The decoded wire type, restricted to the
'de
lifetime.§fn zero_padding(out: &mut MaybeUninit<WireOptionalGuest>)
fn zero_padding(out: &mut MaybeUninit<WireOptionalGuest>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl Freeze for WireOptionalGuest
impl RefUnwindSafe for WireOptionalGuest
impl Send for WireOptionalGuest
impl Sync for WireOptionalGuest
impl Unpin for WireOptionalGuest
impl UnwindSafe for WireOptionalGuest
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