doc.rust-lang.org
fn st_mtime_nsec(&self) -> i64
Returns the last modification time of the file, in nanoseconds since st_mtime.
method
std
Stable since 1.8.0
Version 1.100.0-nightly
doc.rust-lang.org
fn st_mtime(&self) -> i64
Returns the last modification time of the file, in seconds since Unix Epoch.
method
std
Stable since 1.8.0
Version 1.100.0-nightly
doc.rust-lang.org
fn st_mode(&self) -> u32
Returns the file type and mode.
method
std
Stable since 1.8.0
Version 1.100.0-nightly
doc.rust-lang.org
fn st_ino(&self) -> u64
Returns the inode number.
method
std
Stable since 1.8.0
Version 1.100.0-nightly
doc.rust-lang.org
fn st_gid(&self) -> u32
Returns the group ID of the file owner.
method
std
Stable since 1.8.0
Version 1.100.0-nightly
doc.rust-lang.org
fn st_dev(&self) -> u64
Returns the device ID on which this file resides.
method
std
Stable since 1.8.0
Version 1.100.0-nightly
doc.rust-lang.org
fn st_ctime_nsec(&self) -> i64
Returns the last status change time of the file, in nanoseconds since st_ctime.
method
std
Stable since 1.8.0
Version 1.100.0-nightly
doc.rust-lang.org
fn st_ctime(&self) -> i64
Returns the last status change time of the file, in seconds since Unix Epoch.
method
std
Stable since 1.8.0
Version 1.100.0-nightly
doc.rust-lang.org
fn st_blocks(&self) -> u64
Returns the number of blocks allocated to the file, 512-byte units.
method
std
Stable since 1.8.0
Version 1.100.0-nightly
doc.rust-lang.org
fn st_blksize(&self) -> u64
Returns the "preferred" block size for efficient filesystem I/O.
method
std
Stable since 1.8.0
Version 1.100.0-nightly
doc.rust-lang.org
fn st_atime_nsec(&self) -> i64
Returns the last access time of the file, in nanoseconds since st_atime.
method
std
Stable since 1.8.0
Version 1.100.0-nightly
doc.rust-lang.org
fn st_atime(&self) -> i64
Returns the last access time of the file, in seconds since Unix Epoch.
method
std
Stable since 1.8.0
Version 1.100.0-nightly
doc.rust-lang.org
fn as_raw_stat(&self) -> &raw::stat
Gain a reference to the underlying stat structure which contains the raw information returned by the OS.
method
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait MetadataExt
OS-specific extensions to fs::Metadata.
trait
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod fs
Linux-specific extensions to primitives in the std::fs module.
module
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod linux
Linux-specific definitions.
module
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
pub type RawFd = raw::c_int
Raw file descriptors.
type_alias
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn into_raw_fd(self) -> RawFd
Consumes this object, returning the raw underlying file descriptor.
method
std
Stable since 1.4.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait IntoRawFd
A trait to express the ability to consume an object and acquire ownership of its raw file descriptor.
trait
std
Stable since 1.4.0
Version 1.100.0-nightly
doc.rust-lang.org
unsafe fn from_raw_fd(fd: RawFd) -> Self
Constructs a new instance of Self from the given raw file descriptor.
associated_function
std
Stable since 1.1.0
Version 1.100.0-nightly