1 2 3 4 5
pub trait Device { fn poll(&mut self) -> Vec<crate::InputEvent>; fn name(&self) -> &str; fn id(&self) -> &str; }