pub struct Attrs {
pub size: u64,
pub allocated: u64,
pub mtime_ns: i64,
pub ctime_ns: i64,
pub inode: u64,
pub dev: u64,
}Expand description
The stat fields an entry contributes to roll-ups, plus the ones that identify it.
Fields§
§size: u64Apparent size in bytes.
allocated: u64Allocated size in bytes (block count x 512 on Unix). Falls back to size on
platforms that do not report block counts.
mtime_ns: i64Modification time, nanoseconds since the Unix epoch.
ctime_ns: i64Inode change time, nanoseconds since the Unix epoch. Zero where unavailable.
inode: u64Inode number. Zero where unavailable.
dev: u64Device number. Zero where unavailable.
Implementations§
Source§impl Attrs
impl Attrs
Sourcepub const fn fingerprint(&self) -> Fingerprint
pub const fn fingerprint(&self) -> Fingerprint
The change-detection fingerprint for these attributes.
Trait Implementations§
impl Copy for Attrs
impl Eq for Attrs
impl StructuralPartialEq for Attrs
Auto Trait Implementations§
impl Freeze for Attrs
impl RefUnwindSafe for Attrs
impl Send for Attrs
impl Sync for Attrs
impl Unpin for Attrs
impl UnsafeUnpin for Attrs
impl UnwindSafe for Attrs
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