pub enum Error {
Show 14 variants
DatabaseCreationNotEmpty {
path: PathBuf,
},
DatabaseHasNoTransaction {
path: PathBuf,
},
DatabaseHasLockedTransactionAlready {
path: PathBuf,
lock_file: PathBuf,
uuid: Uuid,
},
DatabaseIsLocked {
path: PathBuf,
lock_file: PathBuf,
},
DatabaseIsNotADirectory {
path: PathBuf,
},
DatabaseFailedExclusiveLockFile {
path: PathBuf,
source: TryLockError,
},
DatabaseWrongPermissions {
path: PathBuf,
permissions: u32,
},
EntryComponentIsNotAFile {
path: PathBuf,
},
EntryComponentNameMismatch {
entry_name: String,
component_entry_name: String,
},
EntryExists {
name: EntryName,
},
EntryDoesNotExist {
name: EntryName,
},
EntryIsNotADirectory {
path: PathBuf,
},
TransactionDataDirIsNotADirectory {
path: PathBuf,
},
TransactionTemporaryDataErrors {
path: PathBuf,
uuid: Uuid,
errors: Vec<String>,
},
}Expand description
The error that can occur when accessing or writing an alpm-db.
Variants§
DatabaseCreationNotEmpty
Encountered a non-empty directory when attempting to create a new alpm-db.
DatabaseHasNoTransaction
An alpm-db has no transaction.
DatabaseHasLockedTransactionAlready
An alpm-db has a transaction and a write lock already.
Fields
DatabaseIsLocked
An alpm-db is locked.
Fields
DatabaseIsNotADirectory
An alpm-db root path is not a directory.
DatabaseFailedExclusiveLockFile
A file lock for the alpm-db lock file cannot be created.
Fields
source: TryLockErrorThe error source.
DatabaseWrongPermissions
The permissions for the root directory of an alpm-db differ from the defaults.
Fields
EntryComponentIsNotAFile
A component (desc, files, install or mtree) in an alpm-db entry is not a file.
EntryComponentNameMismatch
Fields
EntryExists
An entry of an alpm-db exists already.
EntryDoesNotExist
An entry of an alpm-db does not exist.
EntryIsNotADirectory
An alpm-db entry path is not a directory.
TransactionDataDirIsNotADirectory
An alpm-db transaction data directory path is not a directory.
TransactionTemporaryDataErrors
One or more errors occurred while preparing the temporary data for an alpm-db transaction.
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()