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
Key(Key)
Keyboard event
Mouse(MouseEvent)
Mouse event
Raw(usize)
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
.
Resize(Size)
Terminal window size changed; contained value is the new size.
Signal(Signal)
Terminal signal received
NoEvent
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]
fn clone(&self) -> Event
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Event
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more