Enum alpm_sys::alpm_errno_t[][src]

#[repr(u32)]
pub enum alpm_errno_t {
Show 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

impl Clone for _alpm_errno_t[src]

fn clone(&self) -> _alpm_errno_t[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for _alpm_errno_t[src]

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

Formats the value using the given formatter. Read more

impl Hash for _alpm_errno_t[src]

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

Feeds this value into the given Hasher. Read more

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

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

impl PartialEq<_alpm_errno_t> for _alpm_errno_t[src]

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

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Copy for _alpm_errno_t[src]

impl Eq for _alpm_errno_t[src]

impl StructuralEq for _alpm_errno_t[src]

impl StructuralPartialEq for _alpm_errno_t[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.