pub enum Error {
Show 19 variants
AlpmBuildInfo(Error),
AlpmCommon(Error),
AlpmMtree(Error),
AlpmMtreePathValidation(PathValidationError),
AlpmPackageInfo(Error),
AlpmTypes(Error),
AlpmTypesPackage(PackageError),
Compression(Error),
InstallScriptlet {
path: PathBuf,
context: String,
},
Input(Error),
InputDirIsOutputDir {
path: PathBuf,
},
InputDirInOutputDir {
input_path: PathBuf,
output_path: PathBuf,
},
IoPath {
path: PathBuf,
context: &'static str,
source: Error,
},
OutputDirInInputDir {
input_path: PathBuf,
output_path: PathBuf,
},
Package(Error),
PathDoesNotExist {
path: PathBuf,
},
PathHasNoParent {
path: PathBuf,
},
PathIsNotAFile {
path: PathBuf,
},
PathIsReadOnly {
path: PathBuf,
},
}
Expand description
An error that can occur when dealing with alpm-package.
Variants§
AlpmBuildInfo(Error)
AlpmCommon(Error)
AlpmMtree(Error)
AlpmMtreePathValidation(PathValidationError)
AlpmPackageInfo(Error)
AlpmTypes(Error)
AlpmTypesPackage(PackageError)
Compression(Error)
InstallScriptlet
An error with an alpm-install-scriptlet.
Fields
Input(Error)
A package input error.
InputDirIsOutputDir
A package input directory is also used as the package output directory.
InputDirInOutputDir
A package output directory is located inside of a package input directory.
IoPath
An I/O error occurred at a path.
Fields
OutputDirInInputDir
A package input directory is located inside of a package output directory.
Package(Error)
PathDoesNotExist
A path does not exist.
PathHasNoParent
A path does not have a parent.
PathIsNotAFile
A path is not a file.
PathIsReadOnly
A path is read only.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<Error> for Error
impl From<Error> for Error
Source§fn from(source: PackageError) -> Self
fn from(source: PackageError) -> Self
Converts to this type from the input type.
Source§impl From<PathValidationError> for Error
impl From<PathValidationError> for Error
Source§fn from(source: PathValidationError) -> Self
fn from(source: PathValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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