rustix::fs

Type Alias Stat

Source
pub type Stat = stat;
Available on crate feature fs 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§

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.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 144 bytes