Skip to main content

PluginBase

Trait PluginBase 

Source
pub trait PluginBase {
    // Provided methods
    fn on_load(&mut self) -> Result<()> { ... }
    fn get_info(&self) -> PluginInfo { ... }
    fn on_parameter(&mut self, id: i32) -> Result<()> { ... }
    fn on_get_parameter_string(&self, id: i32) -> Result<String> { ... }
}
Expand description

Base plugin trait that all plugin types implement

Provided Methods§

Source

fn on_load(&mut self) -> Result<()>

Called when the plugin is loaded

Source

fn get_info(&self) -> PluginInfo

Get plugin information

Source

fn on_parameter(&mut self, id: i32) -> Result<()>

Called when a parameter is changed

Source

fn on_get_parameter_string(&self, id: i32) -> Result<String>

Get string representation of a parameter

Implementors§