pub enum PluginLoaderError {
Manifest(ManifestError),
Host(PluginHostError),
NotWired(&'static str),
NothingLoaded,
Discovery(String),
NotLoaded(String),
NotReloadable(String),
}Expand description
Why a plugin failed to load. Every variant is graceful-degradation input for the caller (discovery logs + skips; the editor never aborts boot on one bad plugin) — the load path returns a value, never panics.
Variants§
Manifest(ManifestError)
The manifest was malformed or declared an unrecognised capability/seam.
Host(PluginHostError)
The component failed to compile, instantiate, activate, or spawn a seam — a wasm trap, fuel/epoch exhaustion, or a capability failure.
NotWired(&'static str)
A seam was declared but the loader was constructed without the editor environment needed to drive it (the minimal test constructor). Never happens on the real boot path.
NothingLoaded
The plugin declared no seam the loader can drain yet, so nothing loaded.
Discovery(String)
:plugin-load <path> pointed at a directory that is not a plugin (no
plugin.toml, bad TOML, or missing/ambiguous component).
NotLoaded(String)
:plugin-unload / :plugin-reload <target> named no currently-loaded
plugin (by manifest id or numeric plugin id).
NotReloadable(String)
:plugin-reload on a plugin the loader can’t re-read from disk (loaded
from bytes in a test, or its source dir is gone).
Trait Implementations§
Source§impl Debug for PluginLoaderError
impl Debug for PluginLoaderError
Source§impl Display for PluginLoaderError
impl Display for PluginLoaderError
Source§impl Error for PluginLoaderError
impl Error for PluginLoaderError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ManifestError> for PluginLoaderError
impl From<ManifestError> for PluginLoaderError
Source§fn from(source: ManifestError) -> Self
fn from(source: ManifestError) -> Self
Source§impl From<PluginHostError> for PluginLoaderError
impl From<PluginHostError> for PluginLoaderError
Source§fn from(source: PluginHostError) -> Self
fn from(source: PluginHostError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for PluginLoaderError
impl !UnwindSafe for PluginLoaderError
impl Freeze for PluginLoaderError
impl Send for PluginLoaderError
impl Sync for PluginLoaderError
impl Unpin for PluginLoaderError
impl UnsafeUnpin for PluginLoaderError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more