Skip to main content

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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>