Skip to main content

PluginLoader

Trait PluginLoader 

Source
pub trait PluginLoader {
    // Required method
    fn load(&self, path: &Path) -> Result<LoadedPlugin, PluginError>;
}
Expand description

Abstraction for loading Agent Plugins from a source.

This trait isolates the loading mechanism from the rest of the system, allowing the next generation to swap the filesystem implementation for network-loaded, cached, or sandboxed loaders without changing callers.

Required Methods§

Source

fn load(&self, path: &Path) -> Result<LoadedPlugin, PluginError>

Load a plugin from the given path.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§