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