pub enum Key {
Show 43 variants
Character(char),
Enter,
Tab,
Backspace,
Delete,
Insert,
Escape,
ArrowLeft,
ArrowRight,
ArrowUp,
ArrowDown,
Home,
End,
PageUp,
PageDown,
Space,
ShiftLeft,
ShiftRight,
ControlLeft,
ControlRight,
AltLeft,
AltRight,
MetaLeft,
MetaRight,
CapsLock,
NumLock,
ScrollLock,
Pause,
PrintScreen,
ContextMenu,
Numpad(char),
NumpadEnter,
MediaPlay,
MediaPause,
MediaPlayPause,
MediaStop,
MediaNext,
MediaPrevious,
VolumeUp,
VolumeDown,
VolumeMute,
F(u8),
Unknown,
}Variants§
Character(char)
Enter
Tab
Backspace
Delete
Insert
Escape
ArrowLeft
ArrowRight
ArrowUp
ArrowDown
Home
End
PageUp
PageDown
Space
ShiftLeft
ShiftRight
ControlLeft
ControlRight
AltLeft
AltRight
MetaLeft
MetaRight
CapsLock
NumLock
ScrollLock
Pause
PrintScreen
ContextMenu
Numpad(char)
NumpadEnter
MediaPlay
MediaPause
MediaPlayPause
MediaStop
MediaNext
MediaPrevious
VolumeUp
VolumeDown
VolumeMute
F(u8)
Unknown
Trait Implementations§
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl UnwindSafe for Key
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