pub enum HotplugEvent {
Connected(DeviceInfo),
Disconnected(DeviceInfo),
}Expand description
Event returned from the HotplugWatch stream.
Variants§
Connected(DeviceInfo)
Disconnected(DeviceInfo)
Trait Implementations§
Source§impl Clone for HotplugEvent
impl Clone for HotplugEvent
Source§fn clone(&self) -> HotplugEvent
fn clone(&self) -> HotplugEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HotplugEvent
impl RefUnwindSafe for HotplugEvent
impl Send for HotplugEvent
impl Sync for HotplugEvent
impl Unpin 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