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§
Sourcefn load(&self, plugin: &LoadedManifest) -> Result<LoadedPlugin, PluginError>
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".