pub enum Request {
Show 13 variants
Hello,
Probe {
path: String,
},
Load {
path: String,
plugin_id: Option<String>,
},
SetParams {
params: Vec<ParamAssign>,
},
GetParams,
ListPresets,
LoadPreset {
preset: String,
},
GetState,
SetState {
state_b64: String,
},
Activate {
sample_rate: f64,
block_size: u32,
shm_path: String,
},
Process {
slot: u32,
frames: u32,
events: Vec<Event>,
},
Deactivate,
Quit,
}Expand description
Client → host.
Variants§
Hello
Handshake; the reply names the host, its version and protocol version.
Probe
List the plugins inside a bundle without instantiating any (used by plugin scan).
Load
Load the bundle and instantiate one plugin (plugin_id may be omitted when the
bundle holds exactly one). Replies with PluginInfo.
SetParams
Set parameters by id or display name; values in display text (2.5kHz, -6dB,
30%), plain numbers, or norm:0.3. Replies with the resulting values.
Fields
params: Vec<ParamAssign>GetParams
Current parameter values.
ListPresets
Discover presets (CLAP preset-discovery factory / VST3 program lists).
LoadPreset
Load a preset by name or load key. Replies with the resulting parameter values.
GetState
Save the plugin’s native state. Replies with base64 bytes.
SetState
Restore native state saved earlier.
Activate
Activate at a sample rate and maximum block size and map the shared-memory file.
Process
Process frames (≤ block size) from slot slot; events carry sample offsets
relative to the block start, sorted by time.
Deactivate
Stop processing and deactivate (the plugin stays loaded).
Quit
Tear down and exit.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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