pub struct PluginOptions {
pub params: Vec<(String, String)>,
pub preset: Option<String>,
pub state: Option<Vec<u8>>,
pub block_size: u32,
pub tail: Tail,
pub watchdog: Duration,
pub slots: u32,
pub progress: Option<fn(f64)>,
}Expand description
Everything that configures one plugin run.
Fields§
§params: Vec<(String, String)>(name or id, value): values in display units (2.5kHz, -6dB, 30%), plain
numbers, or norm:0.3.
preset: Option<String>Preset name or load key (applied after state, before params).
state: Option<Vec<u8>>Native state blob (applied first).
block_size: u32§tail: Tail§watchdog: Duration§slots: u32Blocks in flight in the shared-memory ring.
progress: Option<fn(f64)>Called with the fraction done after each block; returning an error aborts.
Trait Implementations§
Source§impl Clone for PluginOptions
impl Clone for PluginOptions
Source§impl Debug for PluginOptions
impl Debug for PluginOptions
Auto Trait Implementations§
impl Freeze for PluginOptions
impl RefUnwindSafe for PluginOptions
impl Send for PluginOptions
impl Sync for PluginOptions
impl Unpin for PluginOptions
impl UnsafeUnpin for PluginOptions
impl UnwindSafe for PluginOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more