pub enum Error {
Show 23 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,
},
IoRead {
context: &'static str,
source: Error,
},
InvalidUTF8 {
context: &'static str,
source: FromUtf8Error,
},
MetadataFileNotFound {
name: MetadataFileName,
},
EndOfPackageEntries,
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
IoRead
An I/O error occurred while reading.
Fields
InvalidUTF8
UTF-8 parse error.
Fields
context: &'static str
The context in which the error occurred.
This is meant to complete the sentence “Invalid UTF-8 while {context}”.
source: FromUtf8Error
The source error.
MetadataFileNotFound
Metadata file not found in package.
Fields
name: MetadataFileName
The metadata file that was not found.
EndOfPackageEntries
Reached the end of known entries while reading a package.
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.