[][src]Struct alpm_rs::Handle

pub struct Handle { /* fields omitted */ }

Alpm handle

Methods

impl Handle[src]

pub fn local_db(&self) -> AlpmDB[src]

Get the database of locally installed packages.

pub fn sync_dbs(&self) -> DBList[src]

Get the list of sync databases.

pub fn register_syncdb(&self, tree_name: &str, level: i32) -> AlpmDB[src]

Register a sync database of packages.

pub fn unregister_all_syncdbs(&self) -> bool[src]

Unregister all package databases.

pub fn release(&self) -> bool[src]

Release handle

pub fn error_no(&self) -> ErrorNo[src]

Returns last error code

pub fn should_ignore(&self, pkg: &Package) -> bool[src]

Test if a package should be ignored. Checks if the package is ignored via IgnorePkg, or if the package is in a group ignored via IgnoreGroup.

pub fn load_package(
    &self,
    filename: &str,
    full: bool,
    level: i32
) -> Option<Package>
[src]

Create a package from a file. If full is false, the archive is read only until all necessary metadata is found. If it is true, the entire archive is read, which serves as a verification of integrity and the filelist can be created. /// /// # Arguments /// /// * filename - location of the package tarball /// * full - whether to stop the load after metadata is read or continue through the full archive /// * level - what level of package signature checking to perform on the package; note that this must be a '.sig' file type verification ///

pub fn sys_upgrade(&self, enable_downgrade: bool) -> bool[src]

Search for packages to upgrade and add them to the transaction.

pub fn trans_init(&self, flags: i32) -> bool[src]

pub fn add_pkg(&self, pkg: &Package) -> bool[src]

Add a package to the transaction. If the package was loaded by alpm_pkg_load(), it will be freed upon alpm_trans_release() invocation.

pub fn remove_pkg(&self, pkg: &Package) -> bool[src]

Add a package removal action to the transaction.

pub fn trans_get_add(&self) -> PackageList[src]

pub fn trans_release(&self) -> bool[src]

pub fn trans_prepare(&self, deps: *mut DepMissingList) -> bool[src]

pub fn trans_commit(&self, list: *mut AnyList) -> bool[src]

Auto Trait Implementations

impl !Send for Handle

impl !Sync for Handle

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

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

The type returned in the event of a conversion error.

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

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

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

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

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

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

The type returned in the event of a conversion error.