Enum mortal::terminal::Event [] [src]

pub enum Event {
    Key(Key),
    Mouse(MouseEvent),
    Raw(usize),
    Resize(Size),
    Signal(Signal),
    NoEvent,
}

Represents an event generated from a terminal interface

Variants

Keyboard event

Mouse event

Raw data read

A value of this variant can only be returned when using the platform-dependent extension trait, TerminalExt.

On Unix, this trait is mortal::unix::TerminalExt.

On Windows, this trait is mortal::windows::TerminalExt.

Terminal window size changed; contained value is the new size.

Terminal signal received

No event

Returned when a low-level terminal event does not correspond to a reported event type.

Trait Implementations

impl Copy for Event
[src]

impl Clone for Event
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Event
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for Event
[src]

impl PartialEq for Event
[src]

[src]

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

[src]

This method tests for !=.

Auto Trait Implementations

impl Send for Event

impl Sync for Event