pub enum Event {
Key(Key),
Mouse(MouseEvent),
Unsupported(Vec<u8>),
}
Expand description
An event reported by the terminal.
Variants
Key(Key)
A key press.
Mouse(MouseEvent)
A mouse button press, release or wheel use at specific coordinates.
Unsupported(Vec<u8>)
An event that cannot currently be evaluated.
Trait Implementations
impl Eq for Event
impl StructuralEq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more