[−][src]Enum crossterm_winapi::InputRecord
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.
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.
The Event member contains a WINDOW_BUFFER_SIZE_RECORD
structure with
information about the new size of the console screen buffer.
The Event member contains a FOCUS_EVENT_RECORD
structure. These
events are used internally and should be ignored.
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]
fn clone(&self) -> InputRecord
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InputRecord
[src]
impl Eq for InputRecord
[src]
impl From<INPUT_RECORD> for InputRecord
[src]
fn from(record: INPUT_RECORD) -> Self
[src]
impl PartialEq<InputRecord> for InputRecord
[src]
fn eq(&self, other: &InputRecord) -> bool
[src]
fn ne(&self, other: &InputRecord) -> bool
[src]
impl StructuralEq for InputRecord
[src]
impl StructuralPartialEq for InputRecord
[src]
Auto Trait Implementations
impl RefUnwindSafe for InputRecord
impl Send for InputRecord
impl Sync for InputRecord
impl Unpin for InputRecord
impl UnwindSafe for InputRecord
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,