#[repr(u32)]
pub enum _alpm_errno_t {
Show 55 variants ALPM_ERR_OK, ALPM_ERR_MEMORY, ALPM_ERR_SYSTEM, ALPM_ERR_BADPERMS, ALPM_ERR_NOT_A_FILE, ALPM_ERR_NOT_A_DIR, ALPM_ERR_WRONG_ARGS, ALPM_ERR_DISK_SPACE, ALPM_ERR_HANDLE_NULL, ALPM_ERR_HANDLE_NOT_NULL, ALPM_ERR_HANDLE_LOCK, ALPM_ERR_DB_OPEN, ALPM_ERR_DB_CREATE, ALPM_ERR_DB_NULL, ALPM_ERR_DB_NOT_NULL, ALPM_ERR_DB_NOT_FOUND, ALPM_ERR_DB_INVALID, ALPM_ERR_DB_INVALID_SIG, ALPM_ERR_DB_VERSION, ALPM_ERR_DB_WRITE, ALPM_ERR_DB_REMOVE, ALPM_ERR_SERVER_BAD_URL, ALPM_ERR_SERVER_NONE, ALPM_ERR_TRANS_NOT_NULL, ALPM_ERR_TRANS_NULL, ALPM_ERR_TRANS_DUP_TARGET, ALPM_ERR_TRANS_DUP_FILENAME, ALPM_ERR_TRANS_NOT_INITIALIZED, ALPM_ERR_TRANS_NOT_PREPARED, ALPM_ERR_TRANS_ABORT, ALPM_ERR_TRANS_TYPE, ALPM_ERR_TRANS_NOT_LOCKED, ALPM_ERR_TRANS_HOOK_FAILED, ALPM_ERR_PKG_NOT_FOUND, ALPM_ERR_PKG_IGNORED, ALPM_ERR_PKG_INVALID, ALPM_ERR_PKG_INVALID_CHECKSUM, ALPM_ERR_PKG_INVALID_SIG, ALPM_ERR_PKG_MISSING_SIG, ALPM_ERR_PKG_OPEN, ALPM_ERR_PKG_CANT_REMOVE, ALPM_ERR_PKG_INVALID_NAME, ALPM_ERR_PKG_INVALID_ARCH, ALPM_ERR_SIG_MISSING, ALPM_ERR_SIG_INVALID, ALPM_ERR_UNSATISFIED_DEPS, ALPM_ERR_CONFLICTING_DEPS, ALPM_ERR_FILE_CONFLICTS, ALPM_ERR_RETRIEVE, ALPM_ERR_INVALID_REGEX, ALPM_ERR_LIBARCHIVE, ALPM_ERR_LIBCURL, ALPM_ERR_EXTERNAL_DOWNLOAD, ALPM_ERR_GPGME, ALPM_ERR_MISSING_CAPABILITY_SIGNATURES,
}
Expand description

libalpm’s error type

Variants

ALPM_ERR_OK

No error

ALPM_ERR_MEMORY

Failed to allocate memory

ALPM_ERR_SYSTEM

A system error occurred

ALPM_ERR_BADPERMS

Permmision denied

ALPM_ERR_NOT_A_FILE

Should be a file

ALPM_ERR_NOT_A_DIR

Should be a directory

ALPM_ERR_WRONG_ARGS

Function was called with invalid arguments

ALPM_ERR_DISK_SPACE

Insufficient disk space

ALPM_ERR_HANDLE_NULL

Handle should be null

ALPM_ERR_HANDLE_NOT_NULL

Handle should not be null

ALPM_ERR_HANDLE_LOCK

Failed to acquire lock

ALPM_ERR_DB_OPEN

Failed to open database

ALPM_ERR_DB_CREATE

Failed to create database

ALPM_ERR_DB_NULL

Database should not be null

ALPM_ERR_DB_NOT_NULL

Database should be null

ALPM_ERR_DB_NOT_FOUND

The database could not be found

ALPM_ERR_DB_INVALID

Database is invalid

ALPM_ERR_DB_INVALID_SIG

Database has an invalid signature

ALPM_ERR_DB_VERSION

The localdb is in a newer/older format than libalpm expects

ALPM_ERR_DB_WRITE

Failed to write to the database

ALPM_ERR_DB_REMOVE

Failed to remove entry from database

ALPM_ERR_SERVER_BAD_URL

Server URL is in an invalid format

ALPM_ERR_SERVER_NONE

The database has no configured servers

ALPM_ERR_TRANS_NOT_NULL

A transaction is already initialized

ALPM_ERR_TRANS_NULL

A transaction has not been initialized

ALPM_ERR_TRANS_DUP_TARGET

Duplicate target in transaction

ALPM_ERR_TRANS_DUP_FILENAME

Duplicate filename in transaction

ALPM_ERR_TRANS_NOT_INITIALIZED

A transaction has not been initialized

ALPM_ERR_TRANS_NOT_PREPARED

Transaction has not been prepared

ALPM_ERR_TRANS_ABORT

Transaction was aborted

ALPM_ERR_TRANS_TYPE

Failed to interrupt transaction

ALPM_ERR_TRANS_NOT_LOCKED

Tried to commit transaction without locking the database

ALPM_ERR_TRANS_HOOK_FAILED

A hook failed to run

ALPM_ERR_PKG_NOT_FOUND

Package not found

ALPM_ERR_PKG_IGNORED

Package is in ignorepkg

ALPM_ERR_PKG_INVALID

Package is invalid

ALPM_ERR_PKG_INVALID_CHECKSUM

Package has an invalid checksum

ALPM_ERR_PKG_INVALID_SIG

Package has an invalid signature

ALPM_ERR_PKG_MISSING_SIG

Package does not have a signature

ALPM_ERR_PKG_OPEN

Cannot open the package file

ALPM_ERR_PKG_CANT_REMOVE

Failed to remove package files

ALPM_ERR_PKG_INVALID_NAME

Package has an invalid name

ALPM_ERR_PKG_INVALID_ARCH

Package has an invalid architecture

ALPM_ERR_SIG_MISSING

Signatures are missing

ALPM_ERR_SIG_INVALID

Signatures are invalid

ALPM_ERR_UNSATISFIED_DEPS

Dependencies could not be satisfied

ALPM_ERR_CONFLICTING_DEPS

Conflicting dependencies

ALPM_ERR_FILE_CONFLICTS

Files conflict

ALPM_ERR_RETRIEVE

Download failed

ALPM_ERR_INVALID_REGEX

Invalid Regex

ALPM_ERR_LIBARCHIVE

Error in libarchive

ALPM_ERR_LIBCURL

Error in libcurl

ALPM_ERR_EXTERNAL_DOWNLOAD

Error in external download program

ALPM_ERR_GPGME

Error in gpgme

ALPM_ERR_MISSING_CAPABILITY_SIGNATURES

Missing compile-time features

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.