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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl EventIterator for CrosstermEvents
Available on crate feature
crossterm only.impl EventIterator for TermionEvents
Available on crate feature
termion only.