[][src]Enum crossterm_winapi::InputRecord

pub enum InputRecord {
    KeyEvent(KeyEventRecord),
    MouseEvent(MouseEvent),
    WindowBufferSizeEvent(WindowBufferSizeRecord),
    FocusEvent(FocusEventRecord),
    MenuEvent(MenuEventRecord),
}

Describes an input event in the console input buffer. These records can be read from the input buffer by using the ReadConsoleInput or PeekConsoleInput function, or written to the input buffer by using the WriteConsoleInput function.

Ms Docs

Variants

KeyEvent(KeyEventRecord)

The Event member contains a KEY_EVENT_RECORD structure with information about a keyboard event.

MouseEvent(MouseEvent)

The Event member contains a MOUSE_EVENT_RECORD structure with information about a mouse movement or button press event.

WindowBufferSizeEvent(WindowBufferSizeRecord)

The Event member contains a WINDOW_BUFFER_SIZE_RECORD structure with information about the new size of the console screen buffer.

FocusEvent(FocusEventRecord)

The Event member contains a FOCUS_EVENT_RECORD structure. These events are used internally and should be ignored.

MenuEvent(MenuEventRecord)

The Event member contains a MENU_EVENT_RECORD structure. These events are used internally and should be ignored.

Trait Implementations

impl Clone for InputRecord[src]

impl Debug for InputRecord[src]

impl Eq for InputRecord[src]

impl From<INPUT_RECORD> for InputRecord[src]

impl PartialEq<InputRecord> for InputRecord[src]

impl StructuralEq for InputRecord[src]

impl StructuralPartialEq for InputRecord[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.