#[non_exhaustive]pub enum Key {
}Expand description
A logical key press from the consumer (already decoded from the platform’s keyboard event — justerm does not read hardware).
#[non_exhaustive] (#843). Key namespaces grow — media keys, the kitty
protocol’s additions — and the traffic here runs inward: a consumer builds a
Key for crate::Engine::encode_key rather than matching one we hand it, so
the attribute costs it nothing and makes the next VT slice additive.
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.
Char(char)
A printable character (the consumer’s already-composed text).
Keypad(KeypadKey)
A numeric-keypad key (encoded per application-keypad mode, #83).
Up
Down
Right
Left
Home
End
PageUp
PageDown
Insert
Delete
Enter
Tab
Backspace
Escape
F(u8)
Function key F(n), n in 1..=12.
Trait Implementations§
impl Copy for Key
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