pub enum DeviceEvent {
Attached(DeviceAttachedInfo),
Detached(DeviceId),
Paired(DeviceId),
}
Expand description
Event that can occur on device listener
Variants§
Attached(DeviceAttachedInfo)
Device was plugged into host
Detached(DeviceId)
Device was unplugged from host
Paired(DeviceId)
Device was paired to host (trusting computer was authorized)
Trait Implementations§
Source§impl Debug for DeviceEvent
impl Debug for DeviceEvent
Source§impl TryFrom<&Value> for DeviceEvent
impl TryFrom<&Value> for DeviceEvent
Source§type Error = ProtocolError
type Error = ProtocolError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for DeviceEvent
impl RefUnwindSafe for DeviceEvent
impl Send for DeviceEvent
impl Sync for DeviceEvent
impl Unpin for DeviceEvent
impl UnwindSafe for DeviceEvent
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