#[repr(u8)]pub enum KeyType {
Show 127 variants
_None1 = 0,
Escape = 1,
Num1 = 2,
Num2 = 3,
Num3 = 4,
Num4 = 5,
Num5 = 6,
Num6 = 7,
Num7 = 8,
Num8 = 9,
Num9 = 10,
Num0 = 11,
Minus = 12,
Equals = 13,
Backspace = 14,
Tab = 15,
Q = 16,
W = 17,
E = 18,
R = 19,
T = 20,
Y = 21,
U = 22,
I = 23,
O = 24,
P = 25,
LeftBracket = 26,
RightBracket = 27,
Enter = 28,
LeftCtrl = 29,
A = 30,
S = 31,
D = 32,
F = 33,
G = 34,
H = 35,
J = 36,
K = 37,
L = 38,
Semicolon = 39,
SingleQuote = 40,
Backtick = 41,
LeftShift = 42,
Backslash = 43,
Z = 44,
X = 45,
C = 46,
V = 47,
B = 48,
N = 49,
M = 50,
Comma = 51,
Dot = 52,
Slash = 53,
RightShift = 54,
KeypadAsterisk = 55,
LeftAlt = 56,
Space = 57,
CapsLock = 58,
F1 = 59,
F2 = 60,
F3 = 61,
F4 = 62,
F5 = 63,
F6 = 64,
F7 = 65,
F8 = 66,
F9 = 67,
F10 = 68,
NumLock = 69,
ScrollLock = 70,
Keypad7 = 71,
Keypad8 = 72,
Keypad9 = 73,
KeypadMinus = 74,
Keypad4 = 75,
Keypad5 = 76,
Keypad6 = 77,
KeypadPlus = 78,
Keypad1 = 79,
Keypad2 = 80,
Keypad3 = 81,
Keypad0 = 82,
KeypadDot = 83,
_None2 = 84,
_None3 = 85,
_None4 = 86,
F11 = 87,
F12 = 88,
MultimediaPreviousTrack = 89,
MultimediaNextTrack = 90,
KeypadEnter = 91,
RightCtrl = 92,
MultimediaMute = 93,
Calculator = 94,
MultimediaPlayPause = 95,
MultimediaStop = 96,
VolumeDown = 97,
VolumeUp = 98,
WWWHome = 99,
KeypadSlash = 100,
RightAlt = 101,
Home = 102,
UpArrow = 103,
PageUp = 104,
LeftArrow = 105,
RightArrow = 106,
End = 107,
DownArrow = 108,
PageDown = 109,
Insert = 110,
Delete = 111,
LeftGUI = 112,
RightGUI = 113,
Application = 114,
Power = 115,
Sleep = 116,
Wake = 117,
WWWSearch = 118,
WWWFavorites = 119,
WWWRefresh = 120,
WWWStop = 121,
WWWForward = 122,
WWWBack = 123,
MyComputer = 124,
Email = 125,
MultimediaSelect = 126,
}
Variants§
_None1 = 0
Escape = 1
Num1 = 2
Num2 = 3
Num3 = 4
Num4 = 5
Num5 = 6
Num6 = 7
Num7 = 8
Num8 = 9
Num9 = 10
Num0 = 11
Minus = 12
Equals = 13
Backspace = 14
Tab = 15
Q = 16
W = 17
E = 18
R = 19
T = 20
Y = 21
U = 22
I = 23
O = 24
P = 25
LeftBracket = 26
RightBracket = 27
Enter = 28
LeftCtrl = 29
A = 30
S = 31
D = 32
F = 33
G = 34
H = 35
J = 36
K = 37
L = 38
Semicolon = 39
SingleQuote = 40
Backtick = 41
LeftShift = 42
Backslash = 43
Z = 44
X = 45
C = 46
V = 47
B = 48
N = 49
M = 50
Comma = 51
Dot = 52
Slash = 53
RightShift = 54
KeypadAsterisk = 55
LeftAlt = 56
Space = 57
CapsLock = 58
F1 = 59
F2 = 60
F3 = 61
F4 = 62
F5 = 63
F6 = 64
F7 = 65
F8 = 66
F9 = 67
F10 = 68
NumLock = 69
ScrollLock = 70
Keypad7 = 71
Keypad8 = 72
Keypad9 = 73
KeypadMinus = 74
Keypad4 = 75
Keypad5 = 76
Keypad6 = 77
KeypadPlus = 78
Keypad1 = 79
Keypad2 = 80
Keypad3 = 81
Keypad0 = 82
KeypadDot = 83
_None2 = 84
_None3 = 85
_None4 = 86
F11 = 87
F12 = 88
MultimediaPreviousTrack = 89
MultimediaNextTrack = 90
KeypadEnter = 91
RightCtrl = 92
MultimediaMute = 93
Calculator = 94
MultimediaPlayPause = 95
MultimediaStop = 96
VolumeDown = 97
VolumeUp = 98
WWWHome = 99
KeypadSlash = 100
RightAlt = 101
Home = 102
UpArrow = 103
PageUp = 104
LeftArrow = 105
RightArrow = 106
End = 107
DownArrow = 108
PageDown = 109
Insert = 110
Delete = 111
LeftGUI = 112
RightGUI = 113
Application = 114
Power = 115
Sleep = 116
Wake = 117
WWWSearch = 118
WWWFavorites = 119
WWWRefresh = 120
WWWStop = 121
WWWForward = 122
WWWBack = 123
MyComputer = 124
Email = 125
MultimediaSelect = 126
Implementations§
Trait Implementations§
source§impl PartialEq for KeyType
impl PartialEq for KeyType
impl Copy for KeyType
impl StructuralPartialEq for KeyType
Auto Trait Implementations§
impl RefUnwindSafe for KeyType
impl Send for KeyType
impl Sync for KeyType
impl Unpin for KeyType
impl UnwindSafe for KeyType
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