pub struct FileAttr {
pub stat: Stat,
pub created: Option<(i64, i64)>,
}Expand description
File metadata returned by the stat operations.
It bundles the raw platform Stat together with the file creation (birth)
time. On Linux the birth time is not part of struct stat; it comes from
statx instead, so it has to be carried separately. On the BSDs and Apple
platforms it is extracted from the st_birthtime field of Stat.
Fields§
§stat: StatThe raw stat result.
created: Option<(i64, i64)>Creation (birth) time as (seconds, nanoseconds) since the Unix epoch,
or None when the platform/filesystem does not report it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileAttr
impl RefUnwindSafe for FileAttr
impl Send for FileAttr
impl Sync for FileAttr
impl Unpin for FileAttr
impl UnsafeUnpin for FileAttr
impl UnwindSafe for FileAttr
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