pub struct PluginLoader { /* private fields */ }Expand description
Discovers and loads plugins from a directory.
For each .toml manifest found, discover_and_load checks whether a
corresponding native library (.so/.dylib/.dll) or WASM module
(.wasm) exists alongside it. Native library loading requires unsafe
FFI and is left as a stub — the manifest is still returned so callers
can inspect what was found.
Implementations§
Source§impl PluginLoader
impl PluginLoader
Sourcepub fn discover_and_load(&mut self) -> Result<Vec<PluginManifest>>
pub fn discover_and_load(&mut self) -> Result<Vec<PluginManifest>>
Scan plugin_dir for .toml manifest files, resolve the binary
path, and return the manifests found.
Native library loading (dlopen / WASM runtime) is intentionally stubbed out — this method only reads manifests and resolves paths.
Sourcepub fn get_stages(&self) -> Vec<Box<dyn CompressionStage>>
pub fn get_stages(&self) -> Vec<Box<dyn CompressionStage>>
Return CompressionStage wrappers for every loaded plugin, sorted
by ascending priority.
Auto Trait Implementations§
impl Freeze for PluginLoader
impl !RefUnwindSafe for PluginLoader
impl Send for PluginLoader
impl Sync for PluginLoader
impl Unpin for PluginLoader
impl UnsafeUnpin for PluginLoader
impl !UnwindSafe for PluginLoader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more