pub enum RemovalError {
DependentPackagesBlocked {
name: String,
dependents: String,
},
UnsupportedPackageType {
kind: InstallerType,
},
Unexpected(Error),
}Expand description
Errors produced by the removal workflow.
The variants separate policy failures from engine support gaps and from any lower-level runtime error that escapes the removal engine or filesystem cleanup path.
Variants§
DependentPackagesBlocked
The package cannot be removed because another installed package still depends on it.
UnsupportedPackageType
The installed package type does not have a supported removal strategy.
Fields
§
kind: InstallerTypeUnexpected(Error)
A lower-level error escaped the removal pipeline.
Trait Implementations§
Source§impl Debug for RemovalError
impl Debug for RemovalError
Source§impl Display for RemovalError
impl Display for RemovalError
Source§impl Error for RemovalError
impl Error for RemovalError
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 Freeze for RemovalError
impl RefUnwindSafe for RemovalError
impl Send for RemovalError
impl Sync for RemovalError
impl Unpin for RemovalError
impl UnwindSafe for RemovalError
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