Package

Struct 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§

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>

Trait Implementations§

Source§

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

Source§

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 duplicate 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>

Source§

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>

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> Freeze for Package<'h>

§

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

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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

Source§

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

Source§

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.