pub trait Control {
type Event;
type Error;
// Required method
fn update(&mut self) -> Result<Self::Event, Self::Error>;
}Expand description
Represents a control, such as debounced input, button, encoder and etc.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".