pub trait Backend {
// Required methods
fn poll(&mut self, events: &mut Vec<InputEvent>);
fn set_motors(&mut self, command: &MotorCommand) -> bool;
// Provided method
fn steam_input(&mut self, _active: bool) { ... }
}pub trait Backend {
// Required methods
fn poll(&mut self, events: &mut Vec<InputEvent>);
fn set_motors(&mut self, command: &MotorCommand) -> bool;
// Provided method
fn steam_input(&mut self, _active: bool) { ... }
}