Skip to main content

Backend

Trait Backend 

Source
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) { ... }
}

Required Methods§

Source

fn poll(&mut self, events: &mut Vec<InputEvent>)

Source

fn set_motors(&mut self, command: &MotorCommand) -> bool

Provided Methods§

Source

fn steam_input(&mut self, _active: bool)

Implementors§