#[non_exhaustive]#[repr(u16)]pub enum ConsumerKey {
Show 52 variants
No = 0,
SnapShot = 101,
BrightnessUp = 111,
BrightnessDown = 112,
Play = 176,
Pause = 177,
Record = 178,
FastForward = 179,
Rewind = 180,
NextTrack = 181,
PrevTrack = 182,
StopPlay = 183,
Eject = 184,
RandomPlay = 185,
Repeat = 188,
StopEject = 204,
PlayPause = 205,
Mute = 226,
VolumeIncrement = 233,
VolumeDecrement = 234,
Reserved = 235,
Email = 394,
Calculator = 402,
LocalBrowser = 404,
Lock = 414,
ControlPanel = 415,
Assistant = 459,
New = 513,
Open = 514,
Close = 515,
Exit = 516,
Maximize = 517,
Minimize = 518,
Save = 519,
Print = 520,
Properties = 521,
Undo = 538,
Copy = 539,
Cut = 540,
Paste = 541,
SelectAll = 542,
Find = 543,
Search = 545,
Home = 547,
Back = 548,
Forward = 549,
Stop = 550,
Refresh = 551,
Bookmarks = 554,
NextKeyboardLayoutSelect = 669,
DesktopShowAllWindows = 671,
AcSoftKeyLeft = 672,
}Expand description
Keys in consumer page Ref: https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf#page=75
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
No = 0
SnapShot = 101
BrightnessUp = 111
BrightnessDown = 112
Play = 176
Pause = 177
Record = 178
FastForward = 179
Rewind = 180
NextTrack = 181
PrevTrack = 182
StopPlay = 183
Eject = 184
RandomPlay = 185
Repeat = 188
StopEject = 204
PlayPause = 205
Mute = 226
VolumeIncrement = 233
VolumeDecrement = 234
Reserved = 235
Email = 394
Calculator = 402
LocalBrowser = 404
Lock = 414
ControlPanel = 415
Assistant = 459
New = 513
Open = 514
Close = 515
Exit = 516
Maximize = 517
Minimize = 518
Save = 519
Print = 520
Properties = 521
Undo = 538
Copy = 539
Cut = 540
Paste = 541
SelectAll = 542
Find = 543
Search = 545
Home = 547
Back = 548
Forward = 549
Stop = 550
Refresh = 551
Bookmarks = 554
NextKeyboardLayoutSelect = 669
DesktopShowAllWindows = 671
AcSoftKeyLeft = 672
Implementations§
Source§impl ConsumerKey
impl ConsumerKey
Trait Implementations§
Source§impl Clone for ConsumerKey
impl Clone for ConsumerKey
Source§fn clone(&self) -> ConsumerKey
fn clone(&self) -> ConsumerKey
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConsumerKey
impl Debug for ConsumerKey
Source§impl From<u16> for ConsumerKey
impl From<u16> for ConsumerKey
Source§impl Ord for ConsumerKey
impl Ord for ConsumerKey
Source§impl PartialEq for ConsumerKey
impl PartialEq for ConsumerKey
Source§impl PartialOrd for ConsumerKey
impl PartialOrd for ConsumerKey
impl Copy for ConsumerKey
impl Eq for ConsumerKey
impl StructuralPartialEq for ConsumerKey
Auto Trait Implementations§
impl Freeze for ConsumerKey
impl RefUnwindSafe for ConsumerKey
impl Send for ConsumerKey
impl Sync for ConsumerKey
impl Unpin for ConsumerKey
impl UnwindSafe for ConsumerKey
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)