Skip to main content

InputDriver

Trait InputDriver 

Source
pub trait InputDriver {
    // Required method
    fn poll_event(&mut self) -> Option<Event>;
}
Expand description

Driver for input events.

Required Methods§

Source

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".

Implementors§