pub struct DevicePortEvent { /* private fields */ }Implementations§
Source§impl DevicePortEvent
impl DevicePortEvent
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
pub fn as_ref(&self) -> Option<&DevicePortEvent>
pub fn into_option(self) -> Option<DevicePortEvent>
Trait Implementations§
Source§impl Clone for DevicePortEvent
impl Clone for DevicePortEvent
Source§fn clone(&self) -> DevicePortEvent
fn clone(&self) -> DevicePortEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Constrained for DevicePortEvent
impl Constrained for DevicePortEvent
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, DevicePortEvent>,
_: <DevicePortEvent as Constrained>::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, DevicePortEvent>, _: <DevicePortEvent as Constrained>::Constraint, ) -> Result<(), ValidationError>
Validate a slot of this type against a constraint. Can be called when
pointers/envelopes are just presence markers.
Source§impl Debug for DevicePortEvent
impl Debug for DevicePortEvent
Source§impl<___D> Decode<___D> for DevicePortEventwhere
___D: InternalHandleDecoder + ?Sized,
impl<___D> Decode<___D> for DevicePortEventwhere
___D: InternalHandleDecoder + ?Sized,
Source§impl<___E> EncodeOption<DevicePortEvent, ___E> for DevicePortEvent
impl<___E> EncodeOption<DevicePortEvent, ___E> for DevicePortEvent
Source§fn encode_option(
this: Option<DevicePortEvent>,
encoder: &mut ___E,
out: &mut MaybeUninit<DevicePortEvent>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<DevicePortEvent>, encoder: &mut ___E, out: &mut MaybeUninit<DevicePortEvent>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<'a, ___E> EncodeOption<DevicePortEvent, ___E> for &'a DevicePortEvent
impl<'a, ___E> EncodeOption<DevicePortEvent, ___E> for &'a DevicePortEvent
Source§fn encode_option(
this: Option<&'a DevicePortEvent>,
encoder: &mut ___E,
out: &mut MaybeUninit<DevicePortEvent>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<&'a DevicePortEvent>, encoder: &mut ___E, out: &mut MaybeUninit<DevicePortEvent>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl FromWireOption<DevicePortEvent> for DevicePortEvent
impl FromWireOption<DevicePortEvent> for DevicePortEvent
Source§fn from_wire_option(wire: DevicePortEvent) -> Option<DevicePortEvent>
fn from_wire_option(wire: DevicePortEvent) -> Option<DevicePortEvent>
Converts the given owned value to an option of this type.
Source§impl IntoNatural for DevicePortEvent
impl IntoNatural for DevicePortEvent
Source§type Natural = Option<DevicePortEvent>
type Natural = Option<DevicePortEvent>
A good default type for this wire type to convert into.
§fn into_natural(self) -> Self::Natural
fn into_natural(self) -> Self::Natural
Converts this type into its natural equivalent.
Source§impl Wire for DevicePortEvent
impl Wire for DevicePortEvent
Source§type Narrowed<'de> = DevicePortEvent
type Narrowed<'de> = DevicePortEvent
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(out: &mut MaybeUninit<DevicePortEvent>)
fn zero_padding(out: &mut MaybeUninit<DevicePortEvent>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl Freeze for DevicePortEvent
impl RefUnwindSafe for DevicePortEvent
impl Send for DevicePortEvent
impl Sync for DevicePortEvent
impl Unpin for DevicePortEvent
impl UnsafeUnpin for DevicePortEvent
impl UnwindSafe for DevicePortEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]