Struct alpm::Pkg

source ·
pub struct Pkg { /* private fields */ }

Implementations§

source§

impl Pkg

source

pub fn name(&self) -> &str

source

pub fn check_md5sum(&self) -> Result<()>

source

pub fn should_ignore(&self) -> bool

source

pub fn filename(&self) -> Option<&str>

source

pub fn base(&self) -> Option<&str>

source

pub fn version(&self) -> &Ver

source

pub fn origin(&self) -> PackageFrom

source

pub fn desc(&self) -> Option<&str>

source

pub fn url(&self) -> Option<&str>

source

pub fn build_date(&self) -> i64

source

pub fn install_date(&self) -> Option<i64>

source

pub fn packager(&self) -> Option<&str>

source

pub fn md5sum(&self) -> Option<&str>

source

pub fn sha256sum(&self) -> Option<&str>

source

pub fn arch(&self) -> Option<&str>

source

pub fn size(&self) -> i64

source

pub fn isize(&self) -> i64

source

pub fn reason(&self) -> PackageReason

source

pub fn validation(&self) -> PackageValidation

source

pub fn licenses(&self) -> AlpmList<'_, &str>

source

pub fn groups(&self) -> AlpmList<'_, &str>

source

pub fn depends(&self) -> AlpmList<'_, &Dep>

source

pub fn optdepends(&self) -> AlpmList<'_, &Dep>

source

pub fn checkdepends(&self) -> AlpmList<'_, &Dep>

source

pub fn makedepends(&self) -> AlpmList<'_, &Dep>

source

pub fn conflicts(&self) -> AlpmList<'_, &Dep>

source

pub fn provides(&self) -> AlpmList<'_, &Dep>

source

pub fn replaces(&self) -> AlpmList<'_, &Dep>

source

pub fn files(&self) -> FileList<'_>

source

pub fn backup(&self) -> AlpmList<'_, &Backup>

source

pub fn db(&self) -> Option<&Db>

source

pub fn changelog(&self) -> Result<ChangeLog<'_>>

source

pub fn required_by(&self) -> AlpmListMut<String>

source

pub fn optional_for(&self) -> AlpmListMut<String>

source

pub fn base64_sig(&self) -> Option<&str>

source

pub fn has_scriptlet(&self) -> bool

source

pub fn sig(&self) -> Result<Signature>

source§

impl Pkg

source

pub fn check_signature(&self, siglist: &mut SigList) -> Result<()>

Trait Implementations§

source§

impl<'a> AsRef<Pkg> for LoadedPackage<'a>

source§

fn as_ref(&self) -> &Pkg

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Pkg> for Package

source§

fn as_ref(&self) -> &Pkg

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Pkg> for Pkg

source§

fn as_ref(&self) -> &Pkg

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Debug for Pkg

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for Pkg

§

impl !RefUnwindSafe for Pkg

§

impl Send for Pkg

§

impl !Sync for Pkg

§

impl Unpin for Pkg

§

impl UnwindSafe for Pkg

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, 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.