pub struct WireOptionalHandle { /* private fields */ }Expand description
An optional Zircon handle.
Implementations§
Source§impl WireOptionalHandle
 
impl WireOptionalHandle
Sourcepub fn set_encoded_present(out: &mut MaybeUninit<Self>)
 
pub fn set_encoded_present(out: &mut MaybeUninit<Self>)
Encodes a 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 handle as absent in an output.
Sourcepub fn as_raw_handle(&self) -> Option<zx_handle_t>
 
pub fn as_raw_handle(&self) -> Option<zx_handle_t>
Returns the underlying [zx_handle_t], if any.
Trait Implementations§
Source§impl Debug for WireOptionalHandle
 
impl Debug for WireOptionalHandle
Source§impl<D: HandleDecoder + ?Sized> Decode<D> for WireOptionalHandle
 
impl<D: HandleDecoder + ?Sized> Decode<D> for WireOptionalHandle
Source§impl<E: HandleEncoder + ?Sized> EncodeOption<WireOptionalHandle, E> for Handle
 
impl<E: HandleEncoder + ?Sized> EncodeOption<WireOptionalHandle, E> for Handle
Source§fn encode_option(
    this: Option<Self>,
    encoder: &mut E,
    out: &mut MaybeUninit<WireOptionalHandle>,
    _constraint: (),
) -> Result<(), EncodeError>
 
fn encode_option( this: Option<Self>, encoder: &mut E, out: &mut MaybeUninit<WireOptionalHandle>, _constraint: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl FromWireOption<WireOptionalHandle> for Handle
 
impl FromWireOption<WireOptionalHandle> for Handle
Source§fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
 
fn from_wire_option(wire: WireOptionalHandle) -> Option<Self>
Converts the given 
wire to an option of this type.Source§impl IntoNatural for WireOptionalHandle
 
impl IntoNatural for WireOptionalHandle
Source§impl Wire for WireOptionalHandle
 
impl Wire for WireOptionalHandle
Source§type Owned<'de> = WireOptionalHandle
 
type Owned<'de> = WireOptionalHandle
The owned wire type, restricted to the 
'de lifetime.Source§fn zero_padding(out: &mut MaybeUninit<Self>)
 
fn zero_padding(out: &mut MaybeUninit<Self>)
Writes zeroes to the padding for this type, if any.
impl Unconstrained for WireOptionalHandle
Auto Trait Implementations§
impl Freeze for WireOptionalHandle
impl RefUnwindSafe for WireOptionalHandle
impl Send for WireOptionalHandle
impl Sync for WireOptionalHandle
impl Unpin for WireOptionalHandle
impl UnwindSafe for WireOptionalHandle
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