Skip to main content

load_plugin

Function load_plugin 

Source
pub fn load_plugin(
    path: &Path,
    config_json: Option<&str>,
) -> Result<LoadedPlugin, LoadError>
Expand description

Load a plugin from a shared library at the given path.

Validates the PluginDeclaration against the running broker’s API and protocol versions before calling the create function.

§Safety

Loading a shared library executes its initialization routines, which may have arbitrary side effects. Only load trusted libraries.