EventIterator

Trait EventIterator 

Source
pub trait EventIterator {
    // Required method
    fn next_event(&mut self) -> Result<KeyEvent>;
}
Expand description

A trait to represent a source of KeyEvents.

Required Methods§

Source

fn next_event(&mut self) -> Result<KeyEvent>

Get the next event

Implementors§

Source§

impl EventIterator for CrosstermEvents

Available on crate feature crossterm only.
Source§

impl EventIterator for TermionEvents

Available on crate feature termion only.
Source§

impl<E: Iterator<Item = KeyEvent>> EventIterator for TestEvents<E>