[−][src]Struct pkgutils::Database
The Database contains a list of all packages that are available for
install, as well as a list of all the packages installed on the system.
It is used to calculate the dependencies of a package and for checking if
a package is installed.
Implementations
impl Database[src]
The Database contains a list of all packages that are available for
install, as well as a list of all the packages installed on the system.
It is used to calculate the dependencies of a package and for checking if
a package is installed.
pub fn open<P: AsRef<Path>>(
installed_path: P,
pkgdepends: PackageDepends
) -> Self[src]
installed_path: P,
pkgdepends: PackageDepends
) -> Self
Opens a database from the specified path.
pub fn is_pkg_installed(&self, pkg_name: &str) -> bool[src]
Checks if a package is installed
pub fn get_pkg_depends(
&self,
pkg_name: &str
) -> Result<Vec<String>, DatabaseError>[src]
&self,
pkg_name: &str
) -> Result<Vec<String>, DatabaseError>
Retrieves the dependencies of a package that are listed in its manifest file.
pub fn calculate_depends(
&self,
pkg_name: &str,
ordered_dependencies: &mut OrderMap<String, ()>
) -> Result<(), DatabaseError>[src]
&self,
pkg_name: &str,
ordered_dependencies: &mut OrderMap<String, ()>
) -> Result<(), DatabaseError>
Calculates the dependencies of the specified package, and appends them to
ordered_dependencies.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl UnwindSafe for Database
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Typeable for T where
T: Any,
T: Any,