pub struct FileStamp {
pub hash: String,
pub mtime_nanos: u128,
pub len: u64,
}Expand description
Per-file freshness record: content hash plus the stat identity
(mtime, len) it was hashed at. A scan whose stat matches reuses the
hash without reading the file (the make trick). Encoded in
FILE_HASH as hash|mtime_nanos|len; a bare hash (no stamp) never
matches a stat, forcing a re-hash.
Fields§
§hash: String§mtime_nanos: u128§len: u64Trait Implementations§
impl Eq for FileStamp
impl StructuralPartialEq for FileStamp
Auto Trait Implementations§
impl Freeze for FileStamp
impl RefUnwindSafe for FileStamp
impl Send for FileStamp
impl Sync for FileStamp
impl Unpin for FileStamp
impl UnsafeUnpin for FileStamp
impl UnwindSafe for FileStamp
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