Struct paketkoll_cache::FromArchiveCache
source · pub struct FromArchiveCache { /* private fields */ }Implementations§
Trait Implementations§
source§impl Debug for FromArchiveCache
impl Debug for FromArchiveCache
source§impl Files for FromArchiveCache
impl Files for FromArchiveCache
source§fn files(&self, interner: &Interner) -> Result<Vec<FileEntry>>
fn files(&self, interner: &Interner) -> Result<Vec<FileEntry>>
Collect a list of files managed by the package manager including
any available metadata such as checksums or timestamps about those files
source§fn may_need_canonicalization(&self) -> bool
fn may_need_canonicalization(&self) -> bool
True if this backend may benefit from path canonicalization for certain scans
(i.e. paths may be inaccurate)
source§fn owning_packages(
&self,
paths: &AHashSet<&Path>,
interner: &Interner,
) -> Result<DashMap<PathBuf, Option<PackageRef>, RandomState>>
fn owning_packages( &self, paths: &AHashSet<&Path>, interner: &Interner, ) -> Result<DashMap<PathBuf, Option<PackageRef>, RandomState>>
Find the owners of the specified files
source§fn original_files(
&self,
queries: &[OriginalFileQuery],
packages: &PackageMap,
interner: &Interner,
) -> Result<AHashMap<OriginalFileQuery, Vec<u8>>>
fn original_files( &self, queries: &[OriginalFileQuery], packages: &PackageMap, interner: &Interner, ) -> Result<AHashMap<OriginalFileQuery, Vec<u8>>>
Get the original contents of files
source§fn files_from_archives(
&self,
filter: &[PackageRef],
package_map: &PackageMap,
interner: &Interner,
) -> Result<Vec<(PackageRef, Vec<FileEntry>)>, PackageManagerError>
fn files_from_archives( &self, filter: &[PackageRef], package_map: &PackageMap, interner: &Interner, ) -> Result<Vec<(PackageRef, Vec<FileEntry>)>, PackageManagerError>
Attempt to get file information from archives in the package cache (if supported) Read more
source§fn prefer_files_from_archive(&self) -> bool
fn prefer_files_from_archive(&self) -> bool
True if this backend may benefit from path canonicalization for certain scans
(i.e. paths may be inaccurate)
Auto Trait Implementations§
impl Freeze for FromArchiveCache
impl !RefUnwindSafe for FromArchiveCache
impl Send for FromArchiveCache
impl Sync for FromArchiveCache
impl Unpin for FromArchiveCache
impl !UnwindSafe for FromArchiveCache
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more