Enum win32console::structs::input_record::InputRecord[][src]

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

Represents an INPUT_RECORD which describes an input event in the console input buffer.

link: https://docs.microsoft.com/en-us/windows/console/input-record-str

Variants

KeyEvent(KeyEventRecord)

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

Tuple Fields of KeyEvent

0: KeyEventRecord
MouseEvent(MouseEventRecord)

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

Tuple Fields of MouseEvent

0: MouseEventRecord
WindowBufferSizeEvent(WindowBufferSizeRecord)

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

Tuple Fields of WindowBufferSizeEvent

0: WindowBufferSizeRecord
FocusEvent(FocusEventRecord)

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

Tuple Fields of FocusEvent

0: FocusEventRecord
MenuEvent(MenuEventRecord)

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

Tuple Fields of MenuEvent

0: MenuEventRecord

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.