pub struct FileStat {
pub key: String,
pub path: PathBuf,
pub mtime_ns: u64,
pub size: u64,
}Expand description
A file’s identity for staleness: its path-relative key plus the mtime/size
the indexer compares against the manifest to decide what to re-index.
Fields§
§key: StringStable key for the file (e.g. project-relative path with / separators).
path: PathBufAbsolute path, for the loader to read when (re)indexing.
mtime_ns: u64Last-modified time in nanoseconds since the Unix epoch.
size: u64File size in bytes.
Trait Implementations§
impl Eq for FileStat
impl StructuralPartialEq for FileStat
Auto Trait Implementations§
impl Freeze for FileStat
impl RefUnwindSafe for FileStat
impl Send for FileStat
impl Sync for FileStat
impl Unpin for FileStat
impl UnsafeUnpin for FileStat
impl UnwindSafe for FileStat
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