pub trait Keypad {
// Required methods
fn event(&mut self) -> impl Future<Output = KeyEvent> + Send;
fn last_pressed(&mut self) -> Option<Duration>;
}
Required Methods§
fn event(&mut self) -> impl Future<Output = KeyEvent> + Send
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.