Windows

Enum Windows 

Source
#[repr(u32)]
pub enum Windows {
Show 151 variants Shutdown = 57_438, SystemSleep = 57_439, SystemWakeUp = 57_443, ErrorRollOver = 255, KeyA = 30, KeyB = 48, KeyC = 46, KeyD = 32, KeyE = 18, KeyF = 33, KeyG = 34, KeyH = 35, KeyI = 23, KeyJ = 36, KeyK = 37, KeyL = 38, KeyM = 50, KeyN = 49, KeyO = 24, KeyP = 25, KeyQ = 16, KeyR = 19, KeyS = 31, KeyT = 20, KeyU = 22, KeyV = 47, KeyW = 17, KeyX = 45, KeyY = 21, KeyZ = 44, Key1 = 2, Key2 = 3, Key3 = 4, Key4 = 5, Key5 = 6, Key6 = 7, Key7 = 8, Key8 = 9, Key9 = 10, Key0 = 11, KeyEnter = 28, KeyEsc = 1, KeyDelete = 14, KeyTab = 15, KeySpace = 57, KeyMinus = 12, KeyEqual = 13, KeyLeftBrace = 26, KeyRightBrace = 27, KeyBackslash = 43, KeySemiColon = 39, KeyApostrophe = 40, KeyGrave = 41, KeyComma = 51, KeyDot = 52, KeySlash = 53, KeyCapsLock = 58, KeyF1 = 59, KeyF2 = 60, KeyF3 = 61, KeyF4 = 62, KeyF5 = 63, KeyF6 = 64, KeyF7 = 65, KeyF8 = 66, KeyF9 = 67, KeyF10 = 68, KeyF11 = 87, KeyF12 = 88, KeyPrintScreen = 57_399, KeyScrollLock = 70, KeyPause = 14_753_093, KeyInsert = 57_426, KeyHome = 57_415, KeyPageUp = 57_417, KeyDeleteForward = 57_427, KeyEnd = 57_423, KeyPageDown = 57_425, KeyRight = 57_421, KeyLeft = 57_419, KeyDown = 57_424, KeyUp = 57_416, KeypadNumLock = 69, KeypadSlash = 57_397, KeypadStar = 55, KeypadDash = 74, KeypadPlus = 78, KeypadEnter = 57_372, Keypad1End = 79, Keypad2DownArrow = 80, Keypad3PageDn = 81, Keypad4LeftArrow = 75, Keypad5 = 76, Keypad6RightArrow = 77, Keypad7Home = 71, Keypad8UpArrow = 72, Keypad9PageUp = 73, Keypad0Insert = 82, KeypadDot = 83, KeyNonUSSlashBar = 86, KeyApplication = 57_437, KeypadEquals = 89, KeyF13 = 100, KeyF14 = 101, KeyF15 = 102, KeyF16 = 103, KeyF17 = 104, KeyF18 = 105, KeyF19 = 106, KeyF20 = 107, KeyF21 = 108, KeyF22 = 109, KeyF23 = 110, KeyF24 = 118, KeypadComma = 126, KeyInternational1 = 115, KeyInternational2 = 112, KeyInternational3 = 125, KeyInternational4 = 121, KeyInternational5 = 123, KeyLANG1 = 114, KeyLANG2 = 113, KeyLANG3 = 120, KeyLANG4 = 119, KeyLeftCtrl = 29, KeyLeftShift = 42, KeyLeftAlt = 56, KeyLeftGUI = 57_435, KeyRightCtrl = 57_373, KeyRightShift = 54, KeyFakeRightShift = 57_398, KeyRightAlt = 57_400, KeyRightGUI = 57_436, KeyScanNextTrack = 57_369, KeyScanPreviousTrack = 57_360, KeyStop = 57_380, KeyPlayPause = 57_378, KeyMute = 57_376, KeyVolumeUp = 57_392, KeyVolumeDown = 57_390, ALConsumerControlConfiguration = 57_453, ALEmailReader = 57_452, ALCalculator = 57_377, ALLocalMachineBrowser = 57_451, ACSearch = 57_445, ACHome = 57_394, ACBack = 57_450, ACForward = 57_449, ACStop = 57_448, ACRefresh = 57_447, ACBookmarks = 57_446,
}

Variants§

§

Shutdown = 57_438

§

SystemSleep = 57_439

§

SystemWakeUp = 57_443

§

ErrorRollOver = 255

§

KeyA = 30

§

KeyB = 48

§

KeyC = 46

§

KeyD = 32

§

KeyE = 18

§

KeyF = 33

§

KeyG = 34

§

KeyH = 35

§

KeyI = 23

§

KeyJ = 36

§

KeyK = 37

§

KeyL = 38

§

KeyM = 50

§

KeyN = 49

§

KeyO = 24

§

KeyP = 25

§

KeyQ = 16

§

KeyR = 19

§

KeyS = 31

§

KeyT = 20

§

KeyU = 22

§

KeyV = 47

§

KeyW = 17

§

KeyX = 45

§

KeyY = 21

§

KeyZ = 44

§

Key1 = 2

§

Key2 = 3

§

Key3 = 4

§

Key4 = 5

§

Key5 = 6

§

Key6 = 7

§

Key7 = 8

§

Key8 = 9

§

Key9 = 10

§

Key0 = 11

§

KeyEnter = 28

§

KeyEsc = 1

§

KeyDelete = 14

§

KeyTab = 15

§

KeySpace = 57

§

KeyMinus = 12

§

KeyEqual = 13

§

KeyLeftBrace = 26

§

KeyRightBrace = 27

§

KeyBackslash = 43

§

KeySemiColon = 39

§

KeyApostrophe = 40

§

KeyGrave = 41

§

KeyComma = 51

§

KeyDot = 52

§

KeySlash = 53

§

KeyCapsLock = 58

§

KeyF1 = 59

§

KeyF2 = 60

§

KeyF3 = 61

§

KeyF4 = 62

§

KeyF5 = 63

§

KeyF6 = 64

§

KeyF7 = 65

§

KeyF8 = 66

§

KeyF9 = 67

§

KeyF10 = 68

§

KeyF11 = 87

§

KeyF12 = 88

§

KeyPrintScreen = 57_399

§

KeyScrollLock = 70

§

KeyPause = 14_753_093

§

KeyInsert = 57_426

§

KeyHome = 57_415

§

KeyPageUp = 57_417

§

KeyDeleteForward = 57_427

§

KeyEnd = 57_423

§

KeyPageDown = 57_425

§

KeyRight = 57_421

§

KeyLeft = 57_419

§

KeyDown = 57_424

§

KeyUp = 57_416

§

KeypadNumLock = 69

§

KeypadSlash = 57_397

§

KeypadStar = 55

§

KeypadDash = 74

§

KeypadPlus = 78

§

KeypadEnter = 57_372

§

Keypad1End = 79

§

Keypad2DownArrow = 80

§

Keypad3PageDn = 81

§

Keypad4LeftArrow = 75

§

Keypad5 = 76

§

Keypad6RightArrow = 77

§

Keypad7Home = 71

§

Keypad8UpArrow = 72

§

Keypad9PageUp = 73

§

Keypad0Insert = 82

§

KeypadDot = 83

§

KeyNonUSSlashBar = 86

§

KeyApplication = 57_437

§

KeypadEquals = 89

§

KeyF13 = 100

§

KeyF14 = 101

§

KeyF15 = 102

§

KeyF16 = 103

§

KeyF17 = 104

§

KeyF18 = 105

§

KeyF19 = 106

§

KeyF20 = 107

§

KeyF21 = 108

§

KeyF22 = 109

§

KeyF23 = 110

§

KeyF24 = 118

§

KeypadComma = 126

§

KeyInternational1 = 115

§

KeyInternational2 = 112

§

KeyInternational3 = 125

§

KeyInternational4 = 121

§

KeyInternational5 = 123

§

KeyLANG1 = 114

§

KeyLANG2 = 113

§

KeyLANG3 = 120

§

KeyLANG4 = 119

§

KeyLeftCtrl = 29

§

KeyLeftShift = 42

§

KeyLeftAlt = 56

§

KeyLeftGUI = 57_435

§

KeyRightCtrl = 57_373

§

KeyRightShift = 54

§

KeyFakeRightShift = 57_398

§

KeyRightAlt = 57_400

§

KeyRightGUI = 57_436

§

KeyScanNextTrack = 57_369

§

KeyScanPreviousTrack = 57_360

§

KeyStop = 57_380

§

KeyPlayPause = 57_378

§

KeyMute = 57_376

§

KeyVolumeUp = 57_392

§

KeyVolumeDown = 57_390

§

ALConsumerControlConfiguration = 57_453

§

ALEmailReader = 57_452

§

ALCalculator = 57_377

§

ALLocalMachineBrowser = 57_451

§

ACSearch = 57_445

§

ACHome = 57_394

§

ACBack = 57_450

§

ACForward = 57_449

§

ACStop = 57_448

§

ACRefresh = 57_447

§

ACBookmarks = 57_446

Trait Implementations§

Source§

impl Clone for Windows

Source§

fn clone(&self) -> Windows

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Windows

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl TryFrom<Linux> for Windows

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(value: Linux) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Windows> for Linux

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(value: Windows) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u32> for Windows

Source§

type Error = TryFromPrimitiveError<Windows>

The type returned in the event of a conversion error.
Source§

fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for Windows

Source§

impl Copy for Windows

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.