pub trait DspNode: Send + Sync {
// Required method
fn process(
&mut self,
inputs: &[f32],
outputs: &mut [[f32; 2]],
config: &ConfigSnapshot,
ctx: &ProcessContext<'_>,
);
// Provided methods
fn update_parameter(&mut self, _param: &str, _value: f32) { ... }
fn extract_state(&self) -> NodeState { ... }
fn inject_state(&mut self, _state: &NodeState) { ... }
}Required Methods§
fn process( &mut self, inputs: &[f32], outputs: &mut [[f32; 2]], config: &ConfigSnapshot, ctx: &ProcessContext<'_>, )
Provided Methods§
fn update_parameter(&mut self, _param: &str, _value: f32)
fn extract_state(&self) -> NodeState
fn inject_state(&mut self, _state: &NodeState)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".