pub enum InputEvent<'a> {
Key(Key, Modifier),
KeyChar(char, Modifier),
Char(char),
Mouse(MouseEvent),
Paste(PasteEvent, &'a [u8]),
Csi(CSI<'a>),
Osc(&'a [u8]),
Dcs(&'a [u8]),
Ss2(SS2),
Ss3(SS3),
}Variants§
Key(Key, Modifier)
A named key on the keyboard
KeyChar(char, Modifier)
An unnamed key representable by a single character, but with modifiers that are more than just “shift”.
Char(char)
A single text-producing character.
Mouse(MouseEvent)
A mouse event.
Paste(PasteEvent, &'a [u8])
A report from the terminal. A bracketed paste event.
Csi(CSI<'a>)
A raw VT CSI event.
Osc(&'a [u8])
A raw VT OSC event.
Dcs(&'a [u8])
A raw VT DCS event.
Ss2(SS2)
A raw VT SS2 event.
Ss3(SS3)
A raw VT SS3 event.
Trait Implementations§
Source§impl<'a> Clone for InputEvent<'a>
impl<'a> Clone for InputEvent<'a>
Source§impl<'a> Debug for InputEvent<'a>
impl<'a> Debug for InputEvent<'a>
impl<'a> Eq for InputEvent<'a>
Source§impl<'a> PartialEq for InputEvent<'a>
impl<'a> PartialEq for InputEvent<'a>
impl<'a> StructuralPartialEq for InputEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for InputEvent<'a>
impl<'a> RefUnwindSafe for InputEvent<'a>
impl<'a> Send for InputEvent<'a>
impl<'a> Sync for InputEvent<'a>
impl<'a> Unpin for InputEvent<'a>
impl<'a> UnsafeUnpin for InputEvent<'a>
impl<'a> UnwindSafe for InputEvent<'a>
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