pub enum InstallError {
Show 13 variants
AlreadyInstalled {
name: String,
},
AlreadyInstalling {
name: String,
},
CurrentlyUpdating {
name: String,
},
ChecksumMismatch {
expected: String,
actual: String,
},
LegacyChecksumAlgorithm {
algorithm: HashAlgorithm,
},
NoInstallers,
NoCompatibleInstaller {
host: HostProfile,
},
NoScopeCompatibleInstaller {
host: HostProfile,
},
CommandAlreadyExposed {
command: String,
package: String,
},
CommandClaimedWhileInProgress {
command: String,
},
RuntimeBootstrapDeclined {
runtime: String,
},
Cancelled,
Unexpected(Error),
}Expand description
User-facing error type produced by the install pipeline.
The variants intentionally map to coarse categories rather than exposing the raw implementation details from catalog resolution, checksum verification, cancellation, and rollback. This keeps the CLI behavior predictable while still preserving enough context for diagnostics and testing.
Variants§
AlreadyInstalled
AlreadyInstalling
CurrentlyUpdating
ChecksumMismatch
LegacyChecksumAlgorithm
Fields
§
algorithm: HashAlgorithmNoInstallers
NoCompatibleInstaller
Fields
§
host: HostProfileNoScopeCompatibleInstaller
Fields
§
host: HostProfileCommandAlreadyExposed
CommandClaimedWhileInProgress
RuntimeBootstrapDeclined
Cancelled
Unexpected(Error)
Implementations§
Source§impl InstallError
impl InstallError
Sourcepub fn failure_class(&self) -> InstallFailureClass
pub fn failure_class(&self) -> InstallFailureClass
Group the error into a coarse failure class for reporting and rollback.
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
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<CancellationError> for InstallError
impl From<CancellationError> for InstallError
Source§fn from(_: CancellationError) -> Self
fn from(_: CancellationError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for InstallError
impl From<Error> for InstallError
Source§impl From<Error> for InstallError
impl From<Error> for InstallError
Source§impl From<HashError> for InstallError
impl From<HashError> for InstallError
Source§impl From<InstallStateError> for InstallError
impl From<InstallStateError> for InstallError
Source§fn from(value: InstallStateError) -> Self
fn from(value: InstallStateError) -> Self
Converts to this type from the input type.
Source§impl From<InstallerSelectionError> for InstallError
impl From<InstallerSelectionError> for InstallError
Source§fn from(value: InstallerSelectionError) -> Self
fn from(value: InstallerSelectionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InstallError
impl RefUnwindSafe for InstallError
impl Send for InstallError
impl Sync for InstallError
impl Unpin for InstallError
impl UnwindSafe 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