#[non_exhaustive]pub enum HotplugEvent {
Snapshot(Vec<UsbAttachment>),
Attached(UsbAttachment),
Detached(UsbAttachment),
PermissionChanged(UsbAttachment),
DiscoveryFailed(String),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Snapshot(Vec<UsbAttachment>)
Initial state, delivered atomically with subscription registration.
Attached(UsbAttachment)
Detached(UsbAttachment)
PermissionChanged(UsbAttachment)
DiscoveryFailed(String)
Trait Implementations§
Source§impl Clone for HotplugEvent
impl Clone for HotplugEvent
Source§impl Debug for HotplugEvent
impl Debug for HotplugEvent
impl Eq for HotplugEvent
Source§impl PartialEq for HotplugEvent
impl PartialEq for HotplugEvent
impl StructuralPartialEq for HotplugEvent
Auto Trait Implementations§
impl Forget for HotplugEvent
impl Freeze for HotplugEvent
impl Move for HotplugEvent
impl RefUnwindSafe for HotplugEvent
impl Send for HotplugEvent
impl Sync for HotplugEvent
impl Unpin for HotplugEvent
impl UnsafeUnpin for HotplugEvent
impl UnwindSafe for HotplugEvent
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