Struct alpm::Package

source ·
pub struct Package<'h> { /* private fields */ }

Implementations§

source§

impl<'a> Package<'a>

source

pub fn set_reason(&mut self, reason: PackageReason) -> Result<()>

source§

impl<'a> Package<'a>

source

pub fn sync_new_version<T: IntoRawAlpmList<'a, Db<'a>>>( &self, dbs: T ) -> Option<Package<'_>>

source

pub fn download_size(&self) -> i64

Methods from Deref<Target = Pkg<'h>>§

source

pub fn name(&self) -> &'h str

source

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

source

pub fn should_ignore(&self) -> bool

source

pub fn filename(&self) -> &'h str

source

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

source

pub fn version(&self) -> &'h Ver

source

pub fn origin(&self) -> PackageFrom

source

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

source

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

source

pub fn build_date(&self) -> i64

source

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

source

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

source

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

source

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

source

pub fn arch(&self) -> Option<&'h 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<'h, &'h str>

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

pub fn files(&self) -> FileList

source

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

source

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

source

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

source

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

source

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

source

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

source

pub fn has_scriptlet(&self) -> bool

source

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

source

pub fn check_signature(&self) -> Result<(bool, SigList)>

Trait Implementations§

source§

impl<'a> AsAlpmListItemPtr<'a> for Package<'a>

§

type Output = Package<'a>

source§

fn as_ptr(&self) -> *mut c_void

source§

const FREE: Option<unsafe extern "C" fn(_ptr: *mut c_void)> = None

source§

impl<'h> AsPkg for Package<'h>

source§

fn as_pkg(&self) -> Pkg<'_>

source§

impl<'h> Clone for Package<'h>

source§

fn clone(&self) -> Package<'h>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'h> Debug for Package<'h>

source§

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

Formats the value using the given formatter. Read more
source§

impl<'h> Deref for Package<'h>

§

type Target = Pkg<'h>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl<'a, 'b> IntoAlpmListItem<'a, 'b> for Package<'a>

§

type Borrow = Package<'a>

source§

impl<'h> Copy for Package<'h>

source§

impl<'a> IntoPkgAdd for Package<'a>

source§

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> 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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.