[][src]Enum crossterm::InputEvent

pub enum InputEvent {
    Keyboard(KeyEvent),
    Mouse(MouseEvent),
    Unsupported(Vec<u8>),
    Unknown,
}

Enum to specify which input event has occurred.

Variants

Keyboard(KeyEvent)

A single key or a combination is pressed.

Mouse(MouseEvent)

A mouse event occurred.

Unsupported(Vec<u8>)

A unsupported event has occurred.

Unknown

An unknown event has occurred.

Trait Implementations

impl Debug for InputEvent[src]

impl PartialOrd<InputEvent> for InputEvent[src]

impl PartialEq<InputEvent> for InputEvent[src]

Auto Trait Implementations

impl Send for InputEvent

impl Sync for InputEvent

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]