pub enum DeviceChangeEvent {
Added(String),
Removed(String),
}Expand description
An enum filled when a device has been added or removed, along with its name.
Variants§
Added(String)
A device has been added on the host and recognized by serialosc, and is now available for use.
Removed(String)
A device has been removed on the host and is now unavailable for use.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceChangeEvent
impl RefUnwindSafe for DeviceChangeEvent
impl Send for DeviceChangeEvent
impl Sync for DeviceChangeEvent
impl Unpin for DeviceChangeEvent
impl UnwindSafe for DeviceChangeEvent
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