pub enum DevicePortEvent {
Existing(PortId),
Added(PortId),
Removed(PortId),
Idle(Empty),
}Expand description
Port creation and destruction events.
Variants§
Trait Implementations§
Source§impl Clone for DevicePortEvent
impl Clone for DevicePortEvent
impl Copy for DevicePortEvent
Source§impl Debug for DevicePortEvent
impl Debug for DevicePortEvent
Source§impl<___E> Encode<DevicePortEvent, ___E> for DevicePortEventwhere
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<DevicePortEvent, ___E> for DevicePortEventwhere
___E: InternalHandleEncoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<DevicePortEvent>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<DevicePortEvent>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'a, ___E> Encode<DevicePortEvent, ___E> for &'a DevicePortEventwhere
___E: InternalHandleEncoder + ?Sized,
impl<'a, ___E> Encode<DevicePortEvent, ___E> for &'a DevicePortEventwhere
___E: InternalHandleEncoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<DevicePortEvent>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<DevicePortEvent>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> EncodeOption<DevicePortEvent, ___E> for DevicePortEvent
impl<___E> EncodeOption<DevicePortEvent, ___E> for DevicePortEvent
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<DevicePortEvent>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, 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<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<DevicePortEvent>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<DevicePortEvent>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
impl Eq for DevicePortEvent
Source§impl FromWire<DevicePortEvent> for DevicePortEvent
impl FromWire<DevicePortEvent> for DevicePortEvent
Source§fn from_wire(wire: DevicePortEvent) -> Self
fn from_wire(wire: DevicePortEvent) -> Self
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireOption<DevicePortEvent> for DevicePortEvent
impl FromWireOption<DevicePortEvent> for DevicePortEvent
Source§fn from_wire_option(wire: DevicePortEvent) -> Option<Self>
fn from_wire_option(wire: DevicePortEvent) -> Option<Self>
Converts the given owned value to an option of this type.
Source§impl FromWireOption<DevicePortEvent> for Box<DevicePortEvent>
impl FromWireOption<DevicePortEvent> for Box<DevicePortEvent>
Source§fn from_wire_option(wire: DevicePortEvent) -> Option<Self>
fn from_wire_option(wire: DevicePortEvent) -> Option<Self>
Converts the given owned value to an option of this type.
Source§impl FromWireOptionRef<DevicePortEvent> for Box<DevicePortEvent>
impl FromWireOptionRef<DevicePortEvent> for Box<DevicePortEvent>
Source§fn from_wire_option_ref(wire: &DevicePortEvent) -> Option<Self>
fn from_wire_option_ref(wire: &DevicePortEvent) -> Option<Self>
Converts the given reference to an option of this type.
Source§impl FromWireRef<DevicePortEvent> for DevicePortEvent
impl FromWireRef<DevicePortEvent> for DevicePortEvent
Source§fn from_wire_ref(wire: &DevicePortEvent) -> Self
fn from_wire_ref(wire: &DevicePortEvent) -> Self
Converts the given reference to this type.
Source§impl Hash for DevicePortEvent
impl Hash for DevicePortEvent
Source§impl Ord for DevicePortEvent
impl Ord for DevicePortEvent
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DevicePortEvent
impl PartialEq for DevicePortEvent
Source§impl PartialOrd for DevicePortEvent
impl PartialOrd for DevicePortEvent
impl StructuralPartialEq for DevicePortEvent
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, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§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]