pub struct FileAttr {Show 13 fields
pub size: u64,
pub blocks: u64,
pub atime: SystemTime,
pub mtime: SystemTime,
pub ctime: SystemTime,
pub crtime: SystemTime,
pub kind: FileType,
pub perm: u16,
pub nlink: u32,
pub uid: u32,
pub gid: u32,
pub rdev: u32,
pub flags: u32,
}
Expand description
File attributes.
Fields§
§size: u64
Size in bytes
blocks: u64
Size in blocks
atime: SystemTime
Time of last access
mtime: SystemTime
Time of last modification
ctime: SystemTime
Time of last metadata change
crtime: SystemTime
Time of creation (macOS only)
kind: FileType
Kind of file (directory, file, pipe, etc.)
perm: u16
Permissions
nlink: u32
Number of hard links
uid: u32
User ID
gid: u32
Group ID
rdev: u32
Device ID (if special file)
flags: u32
Flags (macOS only; see chflags(2))
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 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