Skip to main content

PluginLoader

Trait PluginLoader 

Source
pub trait PluginLoader:
    Send
    + Sync
    + Debug {
    // Required methods
    fn runtime(&self) -> &str;
    fn load(&self, plugin: &LoadedManifest) -> Result<LoadedPlugin, PluginError>;
}
Expand description

Executes plugins of a custom runtime (e.g. wasm).

Required Methods§

Source

fn runtime(&self) -> &str

Runtime name handled by this loader, as written in manifests.

Source

fn load(&self, plugin: &LoadedManifest) -> Result<LoadedPlugin, PluginError>

Load the plugin described by plugin.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§