pub struct PluginLoader {}Expand description
Plugin loader: shares one wasm runtime across plugins (feature wasm).
Implementations§
Source§impl PluginLoader
impl PluginLoader
Sourcepub fn new() -> Self
pub fn new() -> Self
Without a wasm runtime (wasm-form tools are disabled with the reason stated).
Sourcepub fn load(
&self,
name: &str,
registry: &PluginRegistry,
plugins_root: &Path,
) -> LoadedPlugin
pub fn load( &self, name: &str, registry: &PluginRegistry, plugins_root: &Path, ) -> LoadedPlugin
Load one plugin: re-verify → build tool by tool.
- package-level tampering ⇒ disable everything (
toolsempty), reason = the re-verification text; - a single tool missing/corrupt ⇒ that tool is disabled, the rest as usual;
- the load surface neither touches the network nor spawns: the mcp form only yields server pins.
Trait Implementations§
Auto Trait Implementations§
impl Forget for PluginLoader
impl Freeze for PluginLoader
impl Move 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