pub struct DiskState {
pub hash: Option<ContentHash>,
pub seen: VersionVector,
pub mtime_ns: i64,
pub len: u64,
pub checked_ns: i64,
}Expand description
What is on disk for a path.
Fields§
§hash: Option<ContentHash>Hash of the file; None when there is no file.
seen: VersionVectorVersions the file on disk reflects. Context of the next local edit.
mtime_ns: i64Change-detection pre-filter: mtime (ns since the epoch) and size when recorded.
len: u64§checked_ns: i64Wall-clock time (ns since the epoch) the stamp was taken. A file whose mtime is within two seconds of this is “racy”: filesystems with coarse mtime granularity could hide a same-size edit, so it is re-hashed instead of trusted.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DiskState
impl<'de> Deserialize<'de> for DiskState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DiskState
impl StructuralPartialEq for DiskState
Auto Trait Implementations§
impl Freeze for DiskState
impl RefUnwindSafe for DiskState
impl Send for DiskState
impl Sync for DiskState
impl Unpin for DiskState
impl UnsafeUnpin for DiskState
impl UnwindSafe for DiskState
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