Trait MetadataExt

trait MetadataExt

OS-specific extensions to fs::Metadata.

Required Methods

fn as_raw_stat(self: &Self) -> &super::raw::stat

Gain a reference to the underlying stat structure which contains the raw information returned by the OS.

The contents of the returned stat are not consistent across Unix platforms. The os::unix::fs::MetadataExt trait contains the cross-Unix abstractions contained within the raw stat.

fn st_dev(self: &Self) -> u64
fn st_ino(self: &Self) -> u64
fn st_mode(self: &Self) -> u32
fn st_nlink(self: &Self) -> u64
fn st_uid(self: &Self) -> u32
fn st_gid(self: &Self) -> u32
fn st_rdev(self: &Self) -> u64
fn st_size(self: &Self) -> u64
fn st_atime(self: &Self) -> i64
fn st_atime_nsec(self: &Self) -> i64
fn st_mtime(self: &Self) -> i64
fn st_mtime_nsec(self: &Self) -> i64
fn st_ctime(self: &Self) -> i64
fn st_ctime_nsec(self: &Self) -> i64
fn st_birthtime(self: &Self) -> i64
fn st_birthtime_nsec(self: &Self) -> i64
fn st_blksize(self: &Self) -> u64
fn st_blocks(self: &Self) -> u64
fn st_flags(self: &Self) -> u32
fn st_gen(self: &Self) -> u32
fn st_lspare(self: &Self) -> u32

Implementors