pub enum PluginError {
InvalidManifest(String),
AlreadyLoaded(String),
NotFound(String),
RuntimeError(String),
Discovery(String),
ResourceLimit(String),
SetupFailed(String),
SignatureRejected(String),
PermissionDenied(String),
UnloadFailed(String),
Io(Error),
}Expand description
Errors produced by the HOMECORE plugin system.
Variants§
InvalidManifest(String)
The plugin manifest JSON is missing required fields or is malformed.
AlreadyLoaded(String)
A plugin with this ID is already loaded in the registry.
NotFound(String)
No plugin with this ID is loaded in the registry.
RuntimeError(String)
The plugin runtime failed to spawn or execute the plugin.
Discovery(String)
Plugin discovery or filesystem layout is invalid.
ResourceLimit(String)
A configured manifest, module, or ABI payload exceeds its limit.
SetupFailed(String)
The plugin’s setup hook returned an error.
SignatureRejected(String)
The plugin failed signature/integrity verification (ADR-162 P4): hash mismatch, bad signature, untrusted publisher, or unsigned module under a non-dev trust policy.
PermissionDenied(String)
A plugin attempted a host call (e.g. hc_state_set) on an entity
it did not declare in homecore_permissions (ADR-162 P5 authority
isolation).
UnloadFailed(String)
The plugin’s unload hook returned an error.
Io(Error)
IO error (manifest file not found, WASM binary missing, etc.).
Trait Implementations§
Source§impl Debug for PluginError
impl Debug for PluginError
Source§impl Display for PluginError
impl Display for PluginError
Source§impl Error for PluginError
impl Error for PluginError
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()