pub struct DepCache { /* private fields */ }Expand description
Internal Struct for managing the pkgDepCache.
Implementations
sourceimpl DepCache
 
impl DepCache
pub fn new(cache: Rc<RefCell<UniquePtr<PkgCacheFile>>>) -> Self
pub fn clear(&self)
sourcepub fn install_count(&self) -> u32
 
pub fn install_count(&self) -> u32
The number of packages marked for installation.
sourcepub fn delete_count(&self) -> u32
 
pub fn delete_count(&self) -> u32
The number of packages marked for removal.
sourcepub fn keep_count(&self) -> u32
 
pub fn keep_count(&self) -> u32
The number of packages marked for keep.
sourcepub fn broken_count(&self) -> u32
 
pub fn broken_count(&self) -> u32
The number of packages with broken dependencies in the cache.
sourcepub fn download_size(&self) -> u64
 
pub fn download_size(&self) -> u64
The size of all packages to be downloaded.
sourcepub fn disk_size(&self) -> DiskSpace
 
pub fn disk_size(&self) -> DiskSpace
The amount of space required for installing/removing the packages,“
i.e. the Installed-Size of all packages marked for installation“ minus the Installed-Size of all packages for removal.“
pub fn is_upgradable(&self, pkg_ptr: &PackagePtr, skip_depcache: bool) -> bool
pub fn is_auto_installed(&self, pkg_ptr: &PackagePtr) -> bool
pub fn is_auto_removable(&self, pkg_ptr: &PackagePtr) -> bool
pub fn marked_install(&self, pkg_ptr: &PackagePtr) -> bool
pub fn marked_upgrade(&self, pkg_ptr: &PackagePtr) -> bool
pub fn marked_delete(&self, pkg_ptr: &PackagePtr) -> bool
pub fn marked_keep(&self, pkg_ptr: &PackagePtr) -> bool
pub fn marked_downgrade(&self, pkg_ptr: &PackagePtr) -> bool
pub fn marked_reinstall(&self, pkg_ptr: &PackagePtr) -> bool
pub fn is_now_broken(&self, pkg_ptr: &PackagePtr) -> bool
pub fn is_inst_broken(&self, pkg_ptr: &PackagePtr) -> bool
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for DepCache
impl !Send for DepCache
impl !Sync for DepCache
impl Unpin for DepCache
impl !UnwindSafe for DepCache
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more