Type Alias rustix::backend::fs::types::Stat

source ·
pub type Stat = stat;
Expand description

struct stat for use with statat and fstat.

Aliased Type§

struct Stat {
Show 18 fields pub st_dev: u64, pub st_ino: u64, pub st_nlink: u64, pub st_mode: u32, pub st_uid: u32, pub st_gid: u32, pub __pad0: u32, pub st_rdev: u64, pub st_size: i64, pub st_blksize: i64, pub st_blocks: i64, pub st_atime: u64, pub st_atime_nsec: u64, pub st_mtime: u64, pub st_mtime_nsec: u64, pub st_ctime: u64, pub st_ctime_nsec: u64, pub __unused: [i64; 3],
}

Fields§

§st_dev: u64§st_ino: u64§st_nlink: u64§st_mode: u32§st_uid: u32§st_gid: u32§__pad0: u32§st_rdev: u64§st_size: i64§st_blksize: i64§st_blocks: i64§st_atime: u64§st_atime_nsec: u64§st_mtime: u64§st_mtime_nsec: u64§st_ctime: u64§st_ctime_nsec: u64§__unused: [i64; 3]

Trait Implementations§

source§

impl StatExt for Stat

source§

fn atime(&self) -> i64

Return the value of the st_atime field, casted to the correct type.
source§

fn mtime(&self) -> i64

Return the value of the st_mtime field, casted to the correct type.
source§

fn ctime(&self) -> i64

Return the value of the st_ctime field, casted to the correct type.