pub struct ChangeStamp {
pub ctime: i64,
pub ctime_nanos: u32,
pub ino: u64,
}Expand description
The stamp no agent can set: a file’s ctime, which every write, chmod,
rename and utimensat moves to now, and its inode. mtime is the
agent’s to set (touch -d, cp -p, rsync -t): a same-size rewrite
under the recorded mtime left size and mtime as recorded, and was never
published (AGENTS.md forbade setting timestamps for that reason). An
entry whose change stamp moved while size, mtime and mode did not is
UNSURE: its bytes decide (confirm_racy, barrier::local_dirty), so a
stamp that moved with no change costs a hash, never an upload. The
model’s StampMoved, CtimeConfirm (LeanScanRacy.tla).
Kept as [ctime, nanos, ino] (a baseline of a million entries carries
a million of them).
Fields§
§ctime: i64§ctime_nanos: u32§ino: u64Implementations§
Source§impl ChangeStamp
impl ChangeStamp
pub fn of(m: &Metadata) -> ChangeStamp
Trait Implementations§
Source§impl Clone for ChangeStamp
impl Clone for ChangeStamp
impl Copy for ChangeStamp
Source§impl Debug for ChangeStamp
impl Debug for ChangeStamp
Source§impl Default for ChangeStamp
impl Default for ChangeStamp
Source§impl<'de> Deserialize<'de> for ChangeStamp
impl<'de> Deserialize<'de> for ChangeStamp
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 ChangeStamp
Source§impl From<ChangeStamp> for (i64, u32, u64)
impl From<ChangeStamp> for (i64, u32, u64)
Source§fn from(c: ChangeStamp) -> Self
fn from(c: ChangeStamp) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ChangeStamp
impl PartialEq for ChangeStamp
Source§impl Serialize for ChangeStamp
impl Serialize for ChangeStamp
impl StructuralPartialEq for ChangeStamp
Auto Trait Implementations§
impl Freeze for ChangeStamp
impl RefUnwindSafe for ChangeStamp
impl Send for ChangeStamp
impl Sync for ChangeStamp
impl Unpin for ChangeStamp
impl UnsafeUnpin for ChangeStamp
impl UnwindSafe for ChangeStamp
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