#[non_exhaustive]pub struct CachedFile {
pub relative_path: PathBuf,
pub snapshot_path: PathBuf,
pub blob_path: PathBuf,
pub size_on_disk: u64,
pub last_accessed: SystemTime,
pub last_modified: SystemTime,
}Expand description
A readable file in one cached revision.
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.relative_path: PathBufPath relative to the revision’s snapshot directory.
snapshot_path: PathBufPath to the pointer or copied file inside the snapshot directory.
blob_path: PathBufCanonical path reached from snapshot_path.
On systems where snapshots use symlinks, this normally identifies a
file below blobs. When a snapshot contains regular copies, this is the
canonical snapshot path instead.
size_on_disk: u64Size of the resolved file in bytes.
last_accessed: SystemTimeLast access time reported for the resolved file.
last_modified: SystemTimeLast modification time reported for the resolved file.
Trait Implementations§
Source§impl Clone for CachedFile
impl Clone for CachedFile
Source§impl Debug for CachedFile
impl Debug for CachedFile
impl Eq for CachedFile
Source§impl PartialEq for CachedFile
impl PartialEq for CachedFile
impl StructuralPartialEq for CachedFile
Auto Trait Implementations§
impl Freeze for CachedFile
impl RefUnwindSafe for CachedFile
impl Send for CachedFile
impl Sync for CachedFile
impl Unpin for CachedFile
impl UnsafeUnpin for CachedFile
impl UnwindSafe for CachedFile
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