pub struct CacheStatus {
pub path: PathBuf,
pub bytes: u64,
pub content: Option<ContentStatus>,
pub state: CacheState,
}Expand description
What is known about one file in the cache directory.
Fields§
§path: PathBufWhere the file lives.
bytes: u64Size on disk, in bytes.
content: Option<ContentStatus>The content sidecar fdu wrote beside this snapshot, current or stale, when there is one.
state: CacheStateWhat the file is, as far as this build can tell.
Implementations§
Source§impl CacheStatus
impl CacheStatus
Sourcepub fn snapshot(&self) -> Option<&SnapshotInfo>
pub fn snapshot(&self) -> Option<&SnapshotInfo>
The header of a snapshot this build can serve.
Sourcepub fn is_fdu_snapshot(&self) -> bool
pub fn is_fdu_snapshot(&self) -> bool
Whether this file is one of fdu’s snapshots, current or stale, which is exactly what clearing removes.
Sourcepub fn content_bytes(&self) -> Option<u64>
pub fn content_bytes(&self) -> Option<u64>
Size of the content sidecar beside this snapshot, current or stale.
Trait Implementations§
Source§impl Clone for CacheStatus
impl Clone for CacheStatus
Source§impl Debug for CacheStatus
impl Debug for CacheStatus
impl Eq for CacheStatus
Source§impl PartialEq for CacheStatus
impl PartialEq for CacheStatus
impl StructuralPartialEq for CacheStatus
Auto Trait Implementations§
impl Freeze for CacheStatus
impl RefUnwindSafe for CacheStatus
impl Send for CacheStatus
impl Sync for CacheStatus
impl Unpin for CacheStatus
impl UnsafeUnpin for CacheStatus
impl UnwindSafe for CacheStatus
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