pub trait EventIterator {
// Required method
fn next_event(&mut self) -> Result<KeyEvent>;
}Expand description
A trait to represent a source of KeyEvents.
Required Methods§
Sourcefn next_event(&mut self) -> Result<KeyEvent>
fn next_event(&mut self) -> Result<KeyEvent>
Get the next event
Implementors§
impl EventIterator for CrosstermEvents
Available on crate feature
crossterm only.impl EventIterator for TermionEvents
Available on crate feature
termion only.