#[non_exhaustive]pub enum ScanCode {
Show 243 variants
Unknown,
A,
B,
C,
D,
E,
F,
G,
H,
I,
J,
K,
L,
M,
N,
O,
P,
Q,
R,
S,
T,
U,
V,
W,
X,
Y,
Z,
Num1,
Num2,
Num3,
Num4,
Num5,
Num6,
Num7,
Num8,
Num9,
Num0,
Return,
Escape,
Backspace,
Tab,
Space,
Minus,
Equals,
LeftBracket,
RightBracket,
Backslash,
NonUsHash,
Semicolon,
Apostrophe,
Grave,
Comma,
Period,
Slash,
CapsLock,
F1,
F2,
F3,
F4,
F5,
F6,
F7,
F8,
F9,
F10,
F11,
F12,
PrintScreen,
ScrollLock,
Pause,
Insert,
Home,
PageUp,
Delete,
End,
PageDown,
Right,
Left,
Down,
Up,
NumLockClear,
KeypadDivide,
KeypadMultiply,
KeypadMinus,
KeypadPlus,
KeypadEnter,
Keypad1,
Keypad2,
Keypad3,
Keypad4,
Keypad5,
Keypad6,
Keypad7,
Keypad8,
Keypad9,
Keypad0,
KeypadPeriod,
NonUsBackslash,
Application,
Power,
KeypadEquals,
F13,
F14,
F15,
F16,
F17,
F18,
F19,
F20,
F21,
F22,
F23,
F24,
Execute,
Help,
Menu,
Select,
Stop,
Again,
Undo,
Cut,
Copy,
Paste,
Find,
Mute,
VolumeUp,
VolumeDown,
KeypadComma,
KeypadEqualsAs400,
International1,
International2,
International3,
International4,
International5,
International6,
International7,
International8,
International9,
Lang1,
Lang2,
Lang3,
Lang4,
Lang5,
Lang6,
Lang7,
Lang8,
Lang9,
AltErase,
SysReq,
Cancel,
Clear,
Prior,
Return2,
Separator,
Out,
Oper,
ClearAgain,
CrSel,
ExSel,
Keypad00,
Keypad000,
ThousandsSeparator,
DecimalSeparator,
CurrencyUnit,
CurrencySubunit,
KeypadLeftParen,
KeypadRightParen,
KeypadLeftBrace,
KeypadRightBrace,
KeypadTab,
KeypadBackspace,
KeypadA,
KeypadB,
KeypadC,
KeypadD,
KeypadE,
KeypadF,
KeypadXor,
KeypadPower,
KeypadPercent,
KeypadLess,
KeypadGreater,
KeypadAmpersand,
KeypadDblAmpersand,
KeypadVerticalBar,
KeypadDblVerticalBar,
KeypadColon,
KeypadHash,
KeypadSpace,
KeypadAt,
KeypadExclam,
KeypadMemStore,
KeypadMemRecall,
KeypadMemClear,
KeypadMemAdd,
KeypadMemSubtract,
KeypadMemMultiply,
KeypadMemDivide,
KeypadPlusMinus,
KeypadClear,
KeypadClearEntry,
KeypadBinary,
KeypadOctal,
KeypadDecimal,
KeypadHexadecimal,
LCtrl,
LShift,
LAlt,
LGui,
RCtrl,
RShift,
RAlt,
RGui,
Mode,
AudioNext,
AudioPrev,
AudioStop,
AudioPlay,
AudioMute,
MediaSelect,
Www,
Mail,
Calculator,
Computer,
ApplicationSearch,
ApplicationHome,
ApplicationBack,
ApplicationForward,
ApplicationStop,
ApplicationRefresh,
ApplicationBookmarks,
BrightnessDown,
BrightnessUp,
DisplaySwitch,
KeyboardIllumToggle,
KeyboardIllumDown,
KeyboardIllumUp,
Eject,
Sleep,
App1,
App2,
AudioRewind,
AudioFastForward,
}
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.
Unknown
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Num1
Num2
Num3
Num4
Num5
Num6
Num7
Num8
Num9
Num0
Return
Escape
Backspace
Tab
Space
Minus
Equals
LeftBracket
RightBracket
Backslash
NonUsHash
Semicolon
Apostrophe
Grave
Comma
Period
Slash
CapsLock
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
PrintScreen
ScrollLock
Pause
Insert
Home
PageUp
Delete
End
PageDown
Right
Left
Down
Up
NumLockClear
KeypadDivide
KeypadMultiply
KeypadMinus
KeypadPlus
KeypadEnter
Keypad1
Keypad2
Keypad3
Keypad4
Keypad5
Keypad6
Keypad7
Keypad8
Keypad9
Keypad0
KeypadPeriod
NonUsBackslash
Application
Power
KeypadEquals
F13
F14
F15
F16
F17
F18
F19
F20
F21
F22
F23
F24
Execute
Help
Menu
Select
Stop
Again
Undo
Cut
Copy
Paste
Find
Mute
VolumeUp
VolumeDown
KeypadComma
KeypadEqualsAs400
International1
International2
International3
International4
International5
International6
International7
International8
International9
Lang1
Lang2
Lang3
Lang4
Lang5
Lang6
Lang7
Lang8
Lang9
AltErase
SysReq
Cancel
Clear
Prior
Return2
Separator
Out
Oper
ClearAgain
CrSel
ExSel
Keypad00
Keypad000
ThousandsSeparator
DecimalSeparator
CurrencyUnit
CurrencySubunit
KeypadLeftParen
KeypadRightParen
KeypadLeftBrace
KeypadRightBrace
KeypadTab
KeypadBackspace
KeypadA
KeypadB
KeypadC
KeypadD
KeypadE
KeypadF
KeypadXor
KeypadPower
KeypadPercent
KeypadLess
KeypadGreater
KeypadAmpersand
KeypadDblAmpersand
KeypadVerticalBar
KeypadDblVerticalBar
KeypadColon
KeypadHash
KeypadSpace
KeypadAt
KeypadExclam
KeypadMemStore
KeypadMemRecall
KeypadMemClear
KeypadMemAdd
KeypadMemSubtract
KeypadMemMultiply
KeypadMemDivide
KeypadPlusMinus
KeypadClear
KeypadClearEntry
KeypadBinary
KeypadOctal
KeypadDecimal
KeypadHexadecimal
LCtrl
LShift
LAlt
LGui
RCtrl
RShift
RAlt
RGui
Mode
AudioNext
AudioPrev
AudioStop
AudioPlay
AudioMute
MediaSelect
Www
Calculator
Computer
ApplicationSearch
ApplicationHome
ApplicationBack
ApplicationForward
ApplicationStop
ApplicationRefresh
ApplicationBookmarks
BrightnessDown
BrightnessUp
DisplaySwitch
KeyboardIllumToggle
KeyboardIllumDown
KeyboardIllumUp
Eject
Sleep
App1
App2
AudioRewind
AudioFastForward
Trait Implementations§
source§impl PartialEq for ScanCode
impl PartialEq for ScanCode
impl Copy for ScanCode
impl Eq for ScanCode
impl StructuralPartialEq for ScanCode
Auto Trait Implementations§
impl RefUnwindSafe for ScanCode
impl Send for ScanCode
impl Sync for ScanCode
impl Unpin for ScanCode
impl UnwindSafe for ScanCode
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