Type Alias Stat

pub type Stat = stat;
Available on crate feature dep_rustix only.
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

§

impl Clone for stat

§

fn clone(&self) -> stat

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for stat

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl StatExt for stat

§

fn atime(&self) -> i64

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

fn mtime(&self) -> i64

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

fn ctime(&self) -> i64

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

impl Copy for stat