#[repr(C)]pub struct Stat {}
Expand description
Store the file attributes from a supported file.
Fields
st_dev: u64
ID of device containing file
st_ino: u64
Inode number
st_mode: u32
File type and mode
st_nlink: u32
Number of hard links
st_uid: u32
User ID of the file’s owner.
st_gid: u32
Group ID of the file’s group.
st_rdev: u64
Device ID (if special file)
__pad: u64
st_size: i64
Size of file, in bytes.
st_blksize: u32
Optimal block size for I/O.
__pad2: i32
st_blocks: u64
Number 512-byte blocks allocated.
st_atime: TimeSpec
Backward compatibility. Used for time of last access.
st_mtime: TimeSpec
Time of last modification.
st_ctime: TimeSpec
Time of last status change.
__unused: u64
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Stat
impl UnwindSafe for Stat
Blanket Implementations
Mutably borrows from an owned value. Read more