pub enum HotplugEvent {
Connected(DeviceInfo),
Disconnected(DeviceId),
}Expand description
Event returned from the HotplugWatch stream.
Variants§
Connected(DeviceInfo)
A device has been connected.
Disconnected(DeviceId)
A device has been disconnected.
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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