pub trait MetadataExt {
Show 16 methods
// Required methods
fn dev(&self) -> u64;
fn ino(&self) -> u64;
fn mode(&self) -> u32;
fn nlink(&self) -> u64;
fn uid(&self) -> u32;
fn gid(&self) -> u32;
fn rdev(&self) -> u64;
fn size(&self) -> u64;
fn atime(&self) -> i64;
fn atime_nsec(&self) -> i64;
fn mtime(&self) -> i64;
fn mtime_nsec(&self) -> i64;
fn ctime(&self) -> i64;
fn ctime_nsec(&self) -> i64;
fn blksize(&self) -> u64;
fn blocks(&self) -> u64;
}
Expand description
Unix-specific extensions for MetadataExt
.
This corresponds to std::os::unix::fs::MetadataExt
.
Required Methods§
Sourcefn atime_nsec(&self) -> i64
fn atime_nsec(&self) -> i64
Returns the last access time of the file, in nanoseconds since [atime
].
Sourcefn mtime(&self) -> i64
fn mtime(&self) -> i64
Returns the last modification time of the file, in seconds since Unix Epoch.
Sourcefn mtime_nsec(&self) -> i64
fn mtime_nsec(&self) -> i64
Returns the last modification time of the file, in nanoseconds since [mtime
].
Sourcefn ctime(&self) -> i64
fn ctime(&self) -> i64
Returns the last status change time of the file, in seconds since Unix Epoch.
Sourcefn ctime_nsec(&self) -> i64
fn ctime_nsec(&self) -> i64
Returns the last status change time of the file, in nanoseconds since [ctime
].
Implementors§
impl MetadataExt for Metadata
Available on Unix only.