pub enum InstallError {
Io(Error),
Manifest(ManifestError),
PathLaw {
source: ScriptLawError,
},
Git(String),
Download(String),
Archive(String),
ZipSlip {
entry: String,
},
Registry(RegistryError),
BadRequest {
reason: String,
},
NotInstalled {
name: String,
},
}Expand description
Install errors. fail-closed: nothing is written to disk if any step is invalid.
Variants§
Io(Error)
IO failure.
Manifest(ManifestError)
Manifest parse/validation failure.
PathLaw
Path-law violation (escape from the plugin root, etc.).
Fields
§
source: ScriptLawErrorGit(String)
git channel failure (including git not on PATH — the real-world friction made explicit for Windows).
Download(String)
Download failure.
Archive(String)
Archive extraction failure.
ZipSlip
zip-slip: member path escapes the extraction directory.
Registry(RegistryError)
Registry write failure.
BadRequest
Invalid arguments.
NotInstalled
Plugin not installed (on remove).
Trait Implementations§
Source§impl Debug for InstallError
impl Debug for InstallError
Source§impl Display for InstallError
impl Display for InstallError
Source§impl Error for InstallError
impl Error for InstallError
1.30.0 · 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()
Auto Trait Implementations§
impl !RefUnwindSafe for InstallError
impl !UnwindSafe for InstallError
impl Forget for InstallError
impl Freeze for InstallError
impl Move for InstallError
impl Send for InstallError
impl Sync for InstallError
impl Unpin for InstallError
impl UnsafeUnpin for InstallError
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