LoadedPackage

Struct LoadedPackage 

Source
pub struct LoadedPackage<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> LoadedPackage<'a>

Source

pub fn pkg(&'a self) -> Pkg<'_>

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

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 LoadedPackage<'a>

Source§

type Output = Pkg<'a>

Source§

fn as_ptr(&self) -> *mut c_void

Source§

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

Source§

impl<'a> AsPkg for LoadedPackage<'a>

Source§

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

Source§

impl<'a> Debug for LoadedPackage<'a>

Source§

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

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

impl<'a> Deref for LoadedPackage<'a>

Source§

type Target = Pkg<'a>

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl<'a> Drop for LoadedPackage<'a>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<'a> IntoPkgAdd for LoadedPackage<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for LoadedPackage<'a>

§

impl<'a> !RefUnwindSafe for LoadedPackage<'a>

§

impl<'a> !Send for LoadedPackage<'a>

§

impl<'a> !Sync for LoadedPackage<'a>

§

impl<'a> Unpin for LoadedPackage<'a>

§

impl<'a> !UnwindSafe for LoadedPackage<'a>

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