pub trait AnyServo: Send + Sync {
// Required methods
fn update(&mut self, time: Time) -> Option<ParameterCommand>;
fn id(&self) -> &str;
fn set_enabled(&mut self, enabled: bool);
}Expand description
Trait for type-erased servo operations.
Required Methods§
Sourcefn update(&mut self, time: Time) -> Option<ParameterCommand>
fn update(&mut self, time: Time) -> Option<ParameterCommand>
Update the servo and return a parameter command if the value changed.
Sourcefn set_enabled(&mut self, enabled: bool)
fn set_enabled(&mut self, enabled: bool)
Enable or disable the servo.