Enum termwiz::input::InputEvent
source · [−]pub enum InputEvent {
Key(KeyEvent),
Mouse(MouseEvent),
PixelMouse(PixelMouseEvent),
Resized {
cols: usize,
rows: usize,
},
Paste(String),
Wake,
}
Variants
Key(KeyEvent)
Mouse(MouseEvent)
PixelMouse(PixelMouseEvent)
Resized
Detected that the user has resized the terminal
Paste(String)
For terminals that support Bracketed Paste mode, pastes are collected and reported as this variant.
Wake
The program has woken the input thread.
Trait Implementations
sourceimpl Clone for InputEvent
impl Clone for InputEvent
sourcefn clone(&self) -> InputEvent
fn clone(&self) -> InputEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InputEvent
impl Debug for InputEvent
sourceimpl PartialEq<InputEvent> for InputEvent
impl PartialEq<InputEvent> for InputEvent
sourcefn eq(&self, other: &InputEvent) -> bool
fn eq(&self, other: &InputEvent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InputEvent) -> bool
fn ne(&self, other: &InputEvent) -> bool
This method tests for !=
.
impl Eq for InputEvent
impl StructuralEq for InputEvent
impl StructuralPartialEq for InputEvent
Auto Trait Implementations
impl RefUnwindSafe for InputEvent
impl Send for InputEvent
impl Sync for InputEvent
impl Unpin for InputEvent
impl UnwindSafe for InputEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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