pub struct FileStamp {
pub hash: String,
pub identity_nanos: u128,
pub len: u64,
}Expand description
Per-file freshness record: content hash plus the stat identity it was
hashed at. On Unix the identity combines modification and change time,
so rewriting bytes while restoring mtime cannot hide an edit. Encoded
in FILE_HASH as hash|identity_nanos|len; old mtime-only rows decode
but miss once against the new identity and are refreshed.
Fields§
§hash: String§identity_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