[−][src]Struct alpm_rs::Handle
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) -> i32
[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]
&self,
filename: &str,
full: bool,
level: i32
) -> Option<Package>
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
///
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,