pub enum PluginError {
Show 13 variants
InvalidManifest(String),
InvalidName {
name: String,
reason: String,
},
DisallowedMcpCommand {
id: String,
command: String,
},
SkillNameConflictWithManaged {
name: String,
},
SkillNameConflictWithBundled {
name: String,
},
SkillNameConflictWithPlugin {
name: String,
plugin: String,
},
UnsafeOverlay {
key: String,
},
SkillEntryMissing {
path: PathBuf,
},
NotFound {
name: String,
},
InvalidSource {
path: String,
reason: String,
},
Io {
path: PathBuf,
source: Error,
},
Toml(Error),
TomlSer(Error),
}Expand description
Errors that can occur during plugin install, remove, or list operations.
Variants§
InvalidManifest(String)
The plugin manifest (plugin.toml) is missing or cannot be parsed.
InvalidName
The plugin name is invalid (empty, contains path separators, or reserved).
DisallowedMcpCommand
A plugin MCP entry declares a command not in mcp.allowed_commands.
SkillNameConflictWithManaged
A plugin skill name conflicts with an existing managed (user) skill.
SkillNameConflictWithBundled
A plugin skill name conflicts with a compile-time bundled skill.
SkillNameConflictWithPlugin
A plugin skill name conflicts with a skill from another installed plugin.
UnsafeOverlay
A plugin’s [config] section contains a key not in the tighten-only safelist.
SkillEntryMissing
A [[skills]] path entry does not contain a valid SKILL.md file.
NotFound
The plugin directory does not exist or cannot be read.
InvalidSource
The plugin source path or URL is invalid.
Io
A filesystem operation failed.
Toml(Error)
TOML serialization/deserialization error.
TomlSer(Error)
TOML serialization error.
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()
Source§impl From<Error> for PluginError
impl From<Error> for PluginError
Auto Trait Implementations§
impl Freeze for PluginError
impl !RefUnwindSafe for PluginError
impl Send for PluginError
impl Sync for PluginError
impl Unpin for PluginError
impl UnsafeUnpin for PluginError
impl !UnwindSafe for PluginError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.