pub struct Package<'h> { /* private fields */ }
Implementations§
source§impl<'a> Package<'a>
impl<'a> Package<'a>
pub fn set_reason(&mut self, reason: PackageReason) -> Result<()>
source§impl<'a> Package<'a>
impl<'a> Package<'a>
pub fn sync_new_version<T: IntoRawAlpmList<'a, Db<'a>>>( &self, dbs: T ) -> Option<Package<'_>>
pub fn download_size(&self) -> i64
Methods from Deref<Target = Pkg<'h>>§
pub fn name(&self) -> &'h str
pub fn check_md5sum(&self) -> Result<()>
pub fn should_ignore(&self) -> bool
pub fn filename(&self) -> &'h str
pub fn base(&self) -> Option<&'h str>
pub fn version(&self) -> &'h Ver
pub fn origin(&self) -> PackageFrom
pub fn desc(&self) -> Option<&'h str>
pub fn url(&self) -> Option<&'h str>
pub fn build_date(&self) -> i64
pub fn install_date(&self) -> Option<i64>
pub fn packager(&self) -> Option<&'h str>
pub fn md5sum(&self) -> Option<&'h str>
pub fn sha256sum(&self) -> Option<&'h str>
pub fn arch(&self) -> Option<&'h str>
pub fn size(&self) -> i64
pub fn isize(&self) -> i64
pub fn reason(&self) -> PackageReason
pub fn validation(&self) -> PackageValidation
pub fn licenses(&self) -> AlpmList<'h, &'h str>
pub fn groups(&self) -> AlpmList<'h, &'h str>
pub fn depends(&self) -> AlpmList<'h, Dep<'h>>
pub fn optdepends(&self) -> AlpmList<'h, Dep<'h>>
pub fn checkdepends(&self) -> AlpmList<'h, Dep<'h>>
pub fn makedepends(&self) -> AlpmList<'h, Dep<'h>>
pub fn conflicts(&self) -> AlpmList<'h, Dep<'h>>
pub fn provides(&self) -> AlpmList<'h, Dep<'h>>
pub fn replaces(&self) -> AlpmList<'h, Dep<'h>>
pub fn files(&self) -> FileList
pub fn backup(&self) -> AlpmList<'h, Backup>
pub fn db(&self) -> Option<Db<'h>>
pub fn changelog(&self) -> Result<ChangeLog<'_>>
pub fn required_by(&self) -> AlpmListMut<'h, String>
pub fn optional_for(&self) -> AlpmListMut<'h, String>
pub fn base64_sig(&self) -> Option<&'h str>
pub fn has_scriptlet(&self) -> bool
pub fn sig(&self) -> Result<Signature>
pub fn check_signature(&self) -> Result<(bool, SigList)>
Trait Implementations§
source§impl<'a> AsAlpmListItemPtr<'a> for Package<'a>
impl<'a> AsAlpmListItemPtr<'a> for Package<'a>
impl<'h> Copy for Package<'h>
impl<'a> IntoPkgAdd for Package<'a>
impl<'a> Push<'a> for Package<'a>
Auto Trait Implementations§
impl<'h> !RefUnwindSafe for Package<'h>
impl<'h> !Send for Package<'h>
impl<'h> !Sync for Package<'h>
impl<'h> Unpin for Package<'h>
impl<'h> !UnwindSafe for Package<'h>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more