pub enum InstallerError {
Show 13 variants
FailedToDetectInstalledPackages(Error),
FailedToConstructTransaction(TransactionError),
FailedToFetch(String, PackageCacheError),
LinkError(String, InstallError),
UnlinkError(String, UnlinkError),
IoError(String, Error),
PreProcessingFailed(PrePostLinkError),
PostProcessingFailed(PrePostLinkError),
ClobberError(ClobberError),
Cancelled,
FailedToCreatePrefix(PathBuf, Error),
PlatformSpecificPackagesWithNoarchPlatform(Vec<String>),
FailedToAcquireCacheLock(PackageCacheError),
}Expand description
An error returned by the installer
Variants§
FailedToDetectInstalledPackages(Error)
Failed to determine the currently installed packages.
FailedToConstructTransaction(TransactionError)
Failed to construct a transaction
FailedToFetch(String, PackageCacheError)
Failed to populate the cache with the package
LinkError(String, InstallError)
Failed to link a certain package
UnlinkError(String, UnlinkError)
Failed to unlink a certain package
IoError(String, Error)
A generic IO error occurred
PreProcessingFailed(PrePostLinkError)
Failed to run a pre-link script
PostProcessingFailed(PrePostLinkError)
Failed to run a post-link script
ClobberError(ClobberError)
A clobbering error occurred
Cancelled
The operation was cancelled
FailedToCreatePrefix(PathBuf, Error)
Failed to create the prefix
PlatformSpecificPackagesWithNoarchPlatform(Vec<String>)
Attempted to install platform-specific packages when target platform is noarch
FailedToAcquireCacheLock(PackageCacheError)
Failed to acquire the global cache lock
Trait Implementations§
Source§impl Debug for InstallerError
impl Debug for InstallerError
Source§impl Display for InstallerError
impl Display for InstallerError
Source§impl Error for InstallerError
impl Error for InstallerError
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<Cancelled> for InstallerError
impl From<Cancelled> for InstallerError
Source§impl From<TransactionError> for InstallerError
impl From<TransactionError> for InstallerError
Source§fn from(source: TransactionError) -> Self
fn from(source: TransactionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InstallerError
impl !RefUnwindSafe for InstallerError
impl Send for InstallerError
impl Sync for InstallerError
impl Unpin for InstallerError
impl !UnwindSafe for InstallerError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.