pub enum InstallError {
Cancelled,
FailedToReadPathsJson(Error),
FailedToReadIndexJson(Error),
FailedToReadLinkJson(Error),
FailedToLink(PathBuf, LinkFileError),
FailedToCreateDirectory(PathBuf, Error),
TargetPrefixIsNotUtf8,
FailedToCreateTargetDirectory(Error),
MissingPythonInfo,
FailedToCreatePythonEntryPoint(Error),
PostProcessFailed(Error),
}Expand description
An error that might occur when installing a package.
Variants§
Cancelled
The operation was cancelled.
FailedToReadPathsJson(Error)
The paths.json file could not be read.
FailedToReadIndexJson(Error)
The index.json file could not be read.
FailedToReadLinkJson(Error)
The link.json file could not be read.
FailedToLink(PathBuf, LinkFileError)
A file could not be linked.
FailedToCreateDirectory(PathBuf, Error)
A directory could not be created.
TargetPrefixIsNotUtf8
The target prefix is not UTF-8.
FailedToCreateTargetDirectory(Error)
Failed to create the target directory.
MissingPythonInfo
A noarch package could not be installed because no python version was specified.
FailedToCreatePythonEntryPoint(Error)
Failed to create a python entry point for a noarch package.
PostProcessFailed(Error)
When post-processing of the environment fails. Post-processing involves removing clobbered paths.
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<Cancelled> for InstallError
impl From<Cancelled> for InstallError
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
§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.