Trait Keypad

Source
pub trait Keypad {
    // Required methods
    fn event(&mut self) -> impl Future<Output = KeyEvent> + Send;
    fn last_pressed(&mut self) -> Option<Duration>;
}

Required Methods§

Source

fn event(&mut self) -> impl Future<Output = KeyEvent> + Send

Source

fn last_pressed(&mut self) -> Option<Duration>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a> Keypad for Keypad<'a>