pub enum DeviceKind {
Unknown,
Keyboard,
Mouse,
}Expand description
Cloned device’s primary kind, from its HID report descriptors and Boot declarations (§4.3).
A device with both kinds reads keyboard if it has a full key bitmap (unless it declares Boot for both) or declares Boot for its keyboard only. Otherwise it reads mouse.
Variants§
Unknown
Neither a mouse nor a keyboard (e.g. a vendor-class pad with no HID interface), or nothing
cloned yet; DeviceInfo::is_cloned tells the two apart.
Keyboard
Mouse
Trait Implementations§
Source§impl Clone for DeviceKind
impl Clone for DeviceKind
impl Copy for DeviceKind
Source§impl Debug for DeviceKind
impl Debug for DeviceKind
Source§impl Default for DeviceKind
impl Default for DeviceKind
Source§impl Display for DeviceKind
impl Display for DeviceKind
impl Eq for DeviceKind
Source§impl Hash for DeviceKind
impl Hash for DeviceKind
Source§impl PartialEq for DeviceKind
impl PartialEq for DeviceKind
impl StructuralPartialEq for DeviceKind
Auto Trait Implementations§
impl Freeze for DeviceKind
impl RefUnwindSafe for DeviceKind
impl Send for DeviceKind
impl Sync for DeviceKind
impl Unpin for DeviceKind
impl UnsafeUnpin for DeviceKind
impl UnwindSafe for DeviceKind
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