#[repr(u32)]
pub enum alpm_errno_t {
Show 55 variants ALPM_ERR_OK = 0, ALPM_ERR_MEMORY = 1, ALPM_ERR_SYSTEM = 2, ALPM_ERR_BADPERMS = 3, ALPM_ERR_NOT_A_FILE = 4, ALPM_ERR_NOT_A_DIR = 5, ALPM_ERR_WRONG_ARGS = 6, ALPM_ERR_DISK_SPACE = 7, ALPM_ERR_HANDLE_NULL = 8, ALPM_ERR_HANDLE_NOT_NULL = 9, ALPM_ERR_HANDLE_LOCK = 10, ALPM_ERR_DB_OPEN = 11, ALPM_ERR_DB_CREATE = 12, ALPM_ERR_DB_NULL = 13, ALPM_ERR_DB_NOT_NULL = 14, ALPM_ERR_DB_NOT_FOUND = 15, ALPM_ERR_DB_INVALID = 16, ALPM_ERR_DB_INVALID_SIG = 17, ALPM_ERR_DB_VERSION = 18, ALPM_ERR_DB_WRITE = 19, ALPM_ERR_DB_REMOVE = 20, ALPM_ERR_SERVER_BAD_URL = 21, ALPM_ERR_SERVER_NONE = 22, ALPM_ERR_TRANS_NOT_NULL = 23, ALPM_ERR_TRANS_NULL = 24, ALPM_ERR_TRANS_DUP_TARGET = 25, ALPM_ERR_TRANS_DUP_FILENAME = 26, ALPM_ERR_TRANS_NOT_INITIALIZED = 27, ALPM_ERR_TRANS_NOT_PREPARED = 28, ALPM_ERR_TRANS_ABORT = 29, ALPM_ERR_TRANS_TYPE = 30, ALPM_ERR_TRANS_NOT_LOCKED = 31, ALPM_ERR_TRANS_HOOK_FAILED = 32, ALPM_ERR_PKG_NOT_FOUND = 33, ALPM_ERR_PKG_IGNORED = 34, ALPM_ERR_PKG_INVALID = 35, ALPM_ERR_PKG_INVALID_CHECKSUM = 36, ALPM_ERR_PKG_INVALID_SIG = 37, ALPM_ERR_PKG_MISSING_SIG = 38, ALPM_ERR_PKG_OPEN = 39, ALPM_ERR_PKG_CANT_REMOVE = 40, ALPM_ERR_PKG_INVALID_NAME = 41, ALPM_ERR_PKG_INVALID_ARCH = 42, ALPM_ERR_SIG_MISSING = 43, ALPM_ERR_SIG_INVALID = 44, ALPM_ERR_UNSATISFIED_DEPS = 45, ALPM_ERR_CONFLICTING_DEPS = 46, ALPM_ERR_FILE_CONFLICTS = 47, ALPM_ERR_RETRIEVE = 48, ALPM_ERR_INVALID_REGEX = 49, ALPM_ERR_LIBARCHIVE = 50, ALPM_ERR_LIBCURL = 51, ALPM_ERR_EXTERNAL_DOWNLOAD = 52, ALPM_ERR_GPGME = 53, ALPM_ERR_MISSING_CAPABILITY_SIGNATURES = 54,
}
Expand description

libalpm’s error type libalpm’s error type

Variants§

§

ALPM_ERR_OK = 0

No error

§

ALPM_ERR_MEMORY = 1

Failed to allocate memory

§

ALPM_ERR_SYSTEM = 2

A system error occurred

§

ALPM_ERR_BADPERMS = 3

Permmision denied

§

ALPM_ERR_NOT_A_FILE = 4

Should be a file

§

ALPM_ERR_NOT_A_DIR = 5

Should be a directory

§

ALPM_ERR_WRONG_ARGS = 6

Function was called with invalid arguments

§

ALPM_ERR_DISK_SPACE = 7

Insufficient disk space

§

ALPM_ERR_HANDLE_NULL = 8

Handle should be null

§

ALPM_ERR_HANDLE_NOT_NULL = 9

Handle should not be null

§

ALPM_ERR_HANDLE_LOCK = 10

Failed to acquire lock

§

ALPM_ERR_DB_OPEN = 11

Failed to open database

§

ALPM_ERR_DB_CREATE = 12

Failed to create database

§

ALPM_ERR_DB_NULL = 13

Database should not be null

§

ALPM_ERR_DB_NOT_NULL = 14

Database should be null

§

ALPM_ERR_DB_NOT_FOUND = 15

The database could not be found

§

ALPM_ERR_DB_INVALID = 16

Database is invalid

§

ALPM_ERR_DB_INVALID_SIG = 17

Database has an invalid signature

§

ALPM_ERR_DB_VERSION = 18

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

§

ALPM_ERR_DB_WRITE = 19

Failed to write to the database

§

ALPM_ERR_DB_REMOVE = 20

Failed to remove entry from database

§

ALPM_ERR_SERVER_BAD_URL = 21

Server URL is in an invalid format

§

ALPM_ERR_SERVER_NONE = 22

The database has no configured servers

§

ALPM_ERR_TRANS_NOT_NULL = 23

A transaction is already initialized

§

ALPM_ERR_TRANS_NULL = 24

A transaction has not been initialized

§

ALPM_ERR_TRANS_DUP_TARGET = 25

Duplicate target in transaction

§

ALPM_ERR_TRANS_DUP_FILENAME = 26

Duplicate filename in transaction

§

ALPM_ERR_TRANS_NOT_INITIALIZED = 27

A transaction has not been initialized

§

ALPM_ERR_TRANS_NOT_PREPARED = 28

Transaction has not been prepared

§

ALPM_ERR_TRANS_ABORT = 29

Transaction was aborted

§

ALPM_ERR_TRANS_TYPE = 30

Failed to interrupt transaction

§

ALPM_ERR_TRANS_NOT_LOCKED = 31

Tried to commit transaction without locking the database

§

ALPM_ERR_TRANS_HOOK_FAILED = 32

A hook failed to run

§

ALPM_ERR_PKG_NOT_FOUND = 33

Package not found

§

ALPM_ERR_PKG_IGNORED = 34

Package is in ignorepkg

§

ALPM_ERR_PKG_INVALID = 35

Package is invalid

§

ALPM_ERR_PKG_INVALID_CHECKSUM = 36

Package has an invalid checksum

§

ALPM_ERR_PKG_INVALID_SIG = 37

Package has an invalid signature

§

ALPM_ERR_PKG_MISSING_SIG = 38

Package does not have a signature

§

ALPM_ERR_PKG_OPEN = 39

Cannot open the package file

§

ALPM_ERR_PKG_CANT_REMOVE = 40

Failed to remove package files

§

ALPM_ERR_PKG_INVALID_NAME = 41

Package has an invalid name

§

ALPM_ERR_PKG_INVALID_ARCH = 42

Package has an invalid architecture

§

ALPM_ERR_SIG_MISSING = 43

Signatures are missing

§

ALPM_ERR_SIG_INVALID = 44

Signatures are invalid

§

ALPM_ERR_UNSATISFIED_DEPS = 45

Dependencies could not be satisfied

§

ALPM_ERR_CONFLICTING_DEPS = 46

Conflicting dependencies

§

ALPM_ERR_FILE_CONFLICTS = 47

Files conflict

§

ALPM_ERR_RETRIEVE = 48

Download failed

§

ALPM_ERR_INVALID_REGEX = 49

Invalid Regex

§

ALPM_ERR_LIBARCHIVE = 50

Error in libarchive

§

ALPM_ERR_LIBCURL = 51

Error in libcurl

§

ALPM_ERR_EXTERNAL_DOWNLOAD = 52

Error in external download program

§

ALPM_ERR_GPGME = 53

Error in gpgme

§

ALPM_ERR_MISSING_CAPABILITY_SIGNATURES = 54

Missing compile-time features

Trait Implementations§

source§

impl Clone for _alpm_errno_t

source§

fn clone(&self) -> _alpm_errno_t

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for _alpm_errno_t

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for _alpm_errno_t

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

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

impl PartialEq for _alpm_errno_t

source§

fn eq(&self, other: &_alpm_errno_t) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

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

impl Copy for _alpm_errno_t

source§

impl Eq for _alpm_errno_t

source§

impl StructuralEq for _alpm_errno_t

source§

impl StructuralPartialEq for _alpm_errno_t

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.