pub trait InputDriver {
// Required method
fn poll_event(&mut self) -> Option<Event>;
}Expand description
Driver for input events.
Required Methods§
Sourcefn poll_event(&mut self) -> Option<Event>
fn poll_event(&mut self) -> Option<Event>
Poll for a pending event, if any.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".