#[repr(u16)]pub enum KnownUsagePage {
Show 36 variants
Undefined = 0,
GenericDesktop = 1,
SimulationControls = 2,
VrControls = 3,
SportControls = 4,
GameControls = 5,
GenericDeviceControls = 6,
KeyboardKeypad = 7,
Led = 8,
Button = 9,
Ordinal = 10,
TelephonyDevice = 11,
Consumer = 12,
Digitizers = 13,
Haptics = 14,
PhysicalInputDevice = 15,
Unicode = 16,
Soc = 17,
EyeAndHeadTrackers = 18,
AuxiliaryDisplay = 20,
Sensors = 32,
MedicalInstrument = 64,
BrailleDisplay = 65,
LightingAndIllumination = 89,
Monitor = 128,
MonitorEnumerated = 129,
VesaVirtualControls = 130,
Power = 132,
BatterySystem = 133,
BarcodeScanner = 140,
Scales = 141,
MagneticStripeReader = 142,
CameraControl = 144,
Arcade = 145,
GamingDevice = 146,
FidoAlliance = 61_904,
}Expand description
USB-HID Usage Page
See https://www.usb.org/document-library/hid-usage-tables-17
Variants§
Undefined = 0
GenericDesktop = 1
SimulationControls = 2
VrControls = 3
SportControls = 4
GameControls = 5
GenericDeviceControls = 6
KeyboardKeypad = 7
Led = 8
Button = 9
Ordinal = 10
TelephonyDevice = 11
Consumer = 12
Digitizers = 13
Haptics = 14
PhysicalInputDevice = 15
Unicode = 16
Soc = 17
EyeAndHeadTrackers = 18
AuxiliaryDisplay = 20
Sensors = 32
MedicalInstrument = 64
BrailleDisplay = 65
LightingAndIllumination = 89
Monitor = 128
MonitorEnumerated = 129
VesaVirtualControls = 130
Power = 132
BatterySystem = 133
BarcodeScanner = 140
Scales = 141
MagneticStripeReader = 142
CameraControl = 144
Arcade = 145
GamingDevice = 146
FidoAlliance = 61_904
Trait Implementations§
Source§impl Clone for KnownUsagePage
impl Clone for KnownUsagePage
Source§fn clone(&self) -> KnownUsagePage
fn clone(&self) -> KnownUsagePage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KnownUsagePage
Source§impl Debug for KnownUsagePage
impl Debug for KnownUsagePage
Source§impl From<KnownUsagePage> for u16
impl From<KnownUsagePage> for u16
Source§fn from(enum_value: KnownUsagePage) -> Self
fn from(enum_value: KnownUsagePage) -> Self
Converts to this type from the input type.
Source§impl PartialEq for KnownUsagePage
impl PartialEq for KnownUsagePage
impl StructuralPartialEq for KnownUsagePage
Source§impl TryFrom<u16> for KnownUsagePage
impl TryFrom<u16> for KnownUsagePage
Source§type Error = TryFromPrimitiveError<KnownUsagePage>
type Error = TryFromPrimitiveError<KnownUsagePage>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for KnownUsagePage
impl TryFromPrimitive for KnownUsagePage
const NAME: &'static str = "KnownUsagePage"
type Primitive = u16
type Error = TryFromPrimitiveError<KnownUsagePage>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for KnownUsagePage
impl RefUnwindSafe for KnownUsagePage
impl Send for KnownUsagePage
impl Sync for KnownUsagePage
impl Unpin for KnownUsagePage
impl UnsafeUnpin for KnownUsagePage
impl UnwindSafe for KnownUsagePage
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