pub struct KeyMsg {
pub key: KeyCode,
pub modifiers: KeyModifiers,
}Expand description
A message indicating a keyboard input event.
Fields§
§key: KeyCodeThe crossterm::event::KeyCode representing the key pressed.
modifiers: KeyModifiersThe crossterm::event::KeyModifiers active during the key press.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyMsg
impl RefUnwindSafe for KeyMsg
impl Send for KeyMsg
impl Sync for KeyMsg
impl Unpin for KeyMsg
impl UnwindSafe for KeyMsg
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