pub struct ServoDef {
pub automaton_id: String,
pub target_node: u32,
pub target_param: String,
pub mapping: MappingType,
pub min: f64,
pub max: f64,
pub enabled: bool,
pub async_interval_ms: Option<f64>,
pub control_strategy: Option<ControlStrategy>,
pub conflict_strategy: Option<ConflictStrategy>,
pub table: Option<Vec<ParamValue>>,
}Expand description
Describes a servo: which automaton drives which node parameter.
Fields§
§automaton_id: String§target_node: u32§target_param: String§mapping: MappingType§min: f64§max: f64§enabled: bool§async_interval_ms: Option<f64>Async mode: update interval in milliseconds.
When Some, the automaton runs as a green thread (tokio task)
with the given interval. When None, falls back to sync mode
(requires manual Patchbay::update() calls).
control_strategy: Option<ControlStrategy>Async mode: control strategy (defaults to Absolute).
conflict_strategy: Option<ConflictStrategy>Async mode: conflict resolution (defaults to LastWriteWins).
table: Option<Vec<ParamValue>>Optional value table for index-based automata.
When set, the servo looks up table[automaton_output].
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServoDef
impl RefUnwindSafe for ServoDef
impl Send for ServoDef
impl Sync for ServoDef
impl Unpin for ServoDef
impl UnsafeUnpin for ServoDef
impl UnwindSafe for ServoDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more