pub enum ActionConfig {
Trigger,
Toggle,
BeatSync,
ParamCompute(ParamComputeConfig),
}Expand description
§========================================================================== Action Configuration (Discriminated Union)
Action configuration variant
Each variant contains only the fields relevant to that action type, ensuring type safety and preventing invalid combinations.
Variants§
Trigger
One-shot trigger (e.g., Reset, Randomize) No additional configuration needed
Toggle
Stateful toggle (On/Off) No additional configuration needed
BeatSync
Rhythmic trigger synchronized to beat/tempo No additional configuration needed (timing comes from beat-info)
ParamCompute(ParamComputeConfig)
Parameter computation (reads params, writes to other nodes) Requires configuration for source/target parameter references
Trait Implementations§
Source§impl Clone for ActionConfig
impl Clone for ActionConfig
Source§fn clone(&self) -> ActionConfig
fn clone(&self) -> ActionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ActionConfig
impl RefUnwindSafe for ActionConfig
impl Send for ActionConfig
impl Sync for ActionConfig
impl Unpin for ActionConfig
impl UnwindSafe for ActionConfig
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