#[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 HotplugEventwhere
RawVecInner: Send,
impl Sync for HotplugEventwhere
RawVecInner: Sync,
impl Unpin for HotplugEvent
impl UnsafeUnpin for HotplugEventwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<UsbAttachment>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for HotplugEventwhere
RawVecInner: UnwindSafe,
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