#[non_exhaustive]pub struct CacheInfo {
pub cache_dir: PathBuf,
pub repos: Vec<CachedRepo>,
pub size_on_disk: u64,
pub warnings: Vec<ScanWarning>,
}Expand description
Result of scanning an entire cache directory.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cache_dir: PathBufCache directory that was inspected.
repos: Vec<CachedRepo>Discovered repositories, sorted by kind and repository identifier.
size_on_disk: u64Total bytes across repositories, with shared files deduplicated within each repository.
warnings: Vec<ScanWarning>Non-fatal problems encountered during the scan.
Trait Implementations§
impl Eq for CacheInfo
impl StructuralPartialEq for CacheInfo
Auto Trait Implementations§
impl Freeze for CacheInfo
impl RefUnwindSafe for CacheInfo
impl Send for CacheInfo
impl Sync for CacheInfo
impl Unpin for CacheInfo
impl UnsafeUnpin for CacheInfo
impl UnwindSafe for CacheInfo
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