pub enum PluginError {
Io {
path: PathBuf,
source: Error,
},
Parse {
path: PathBuf,
source: Error,
},
Invalid {
path: PathBuf,
message: String,
},
NameMismatch {
manifest_name: String,
dir_name: String,
path: PathBuf,
},
UnknownMarketplace {
url: String,
},
BlockedMarketplace {
url: String,
},
PluginNotFound {
name: String,
url: String,
},
Sha256Mismatch {
name: String,
expected: String,
actual: String,
},
StrictPluginOnly {
name: String,
},
Http(Error),
Url(ParseError),
Extract(String),
}Expand description
Errors emitted by the plugin orchestrator.
Variants§
Io
IO failure with a contextualized path.
Parse
JSON parse failure with a contextualized path.
Invalid
Manifest validation failure (e.g. invalid name, bad min_version).
NameMismatch
Plugin name doesn’t match the parent directory.
Fields
UnknownMarketplace
Marketplace install rejected: marketplace not in the strict allowlist.
BlockedMarketplace
Marketplace install rejected: marketplace is in the block list.
PluginNotFound
Plugin not found in the marketplace index.
Sha256Mismatch
Sha256 mismatch between marketplace metadata and the downloaded tarball.
Fields
StrictPluginOnly
Plugin disabled by CALIBAN_STRICT_PLUGIN_ONLY_CUSTOMIZATION policy.
Http(Error)
HTTP transport failure (marketplace fetch, tarball download).
Url(ParseError)
Url parse failure.
Extract(String)
Tarball extraction failure.
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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for PluginError
impl From<Error> for PluginError
Source§impl From<ParseError> for PluginError
impl From<ParseError> for PluginError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PluginError
impl !UnwindSafe for PluginError
impl Freeze for PluginError
impl Send for PluginError
impl Sync for PluginError
impl Unpin for PluginError
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more