[][src]Struct alpm_rs::package::Package

pub struct Package { /* fields omitted */ }

Methods

impl Package[src]

pub fn vercmp(a: &str, b: &str) -> i32[src]

Compare two version strings and determine which one is 'newer'.

pub fn validation(&self) -> i32[src]

Returns the method used to validate a package during install. Flags: alpm_rs::enum::ALPM_PKG_VALIDATION_UNKNOWN alpm_rs::enum::ALPM_PKG_VALIDATION_NONE alpm_rs::enum::ALPM_PKG_VALIDATION_MD5SUM alpm_rs::enum::ALPM_PKG_VALIDATION_SHA256SUM alpm_rs::enum::ALPM_PKG_VALIDATION_SIGNATURE

pub fn filename(&self) -> &str[src]

Gets the name of the file from which the package was loaded.

pub fn base(&self) -> &str[src]

Returns the package base name.

pub fn base64_sig(&self) -> &str[src]

Returns the package name.

pub fn name(&self) -> &str[src]

Returns the package name.

pub fn version(&self) -> &str[src]

Returns the package version as a string. This includes all available epoch, version, and pkgrel components. Use vercmp() to compare version strings if necessary.

pub fn origin(&self) -> PkgFrom[src]

Returns the origin of the package.

pub fn description(&self) -> &str[src]

Returns the package description.

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

pub fn url(&self) -> &str[src]

Returns the package URL.

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

Computes the list of packages requiring a given package.

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

Computes the list of packages optionally requiring a given package.

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

Check the integrity (with md5) of a package from the sync cache.

pub fn newer_version(&self, dbs: &DBList) -> Option<Package>[src]

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

Free package

Trait Implementations

impl AlpmListItem<Package> for Package[src]

impl From<*mut alpm_pkg_t> for Package[src]

impl Drop for Package[src]

Auto Trait Implementations

impl !Send for Package

impl !Sync for Package

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.