Trait embedded_controls::Control
source · pub trait Control {
type Timestamp;
type Event;
type Error;
fn update(
&mut self,
now: Self::Timestamp
) -> Result<Self::Event, Self::Error>;
}Expand description
Represents a control, such as debounced input, button, encoder and etc.