doc.rust-lang.org
fn ino(&self) -> u64
Returns the inode number.
method
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
fn gid(&self) -> u32
Returns the group ID of the owner of this file.
method
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
fn dev(&self) -> u64
Returns the ID of the device containing the file.
method
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
fn ctime_nsec(&self) -> i64
Returns the last status change time of the file, in nanoseconds since ctime.
method
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
fn ctime(&self) -> i64
Returns the last status change time of the file, in seconds since Unix Epoch.
method
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
fn blocks(&self) -> u64
Returns the number of blocks allocated to the file, in 512-byte units.
method
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
fn blksize(&self) -> u64
Returns the block size for filesystem I/O.
method
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
fn atime_nsec(&self) -> i64
Returns the last access time of the file, in nanoseconds since atime.
method
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
fn atime(&self) -> i64
Returns the last access time of the file, in seconds since Unix Epoch.
method
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait MetadataExt
Unix-specific extensions to fs::Metadata.
trait
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
fn is_socket(&self) -> bool
Returns true if this file type is a socket.
method
std
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
fn is_fifo(&self) -> bool
Returns true if this file type is a fifo.
method
std
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
fn is_char_device(&self) -> bool
Returns true if this file type is a char device.
method
std
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
fn is_block_device(&self) -> bool
Returns true if this file type is a block device.
method
std
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait FileTypeExt
Unix-specific extensions for fs::FileType.
trait
std
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
fn write_at(&self, buf: &[u8], offset: u64) -> io::Result<usize>
Writes a number of bytes starting from a given offset.
method
std
Stable since 1.15.0
Version 1.100.0-nightly
doc.rust-lang.org
fn write_all_at(&self, buf: &[u8], offset: u64) -> io::Result<()>
Attempts to write an entire buffer starting from a given offset.
method
std
Stable since 1.33.0
Version 1.100.0-nightly
doc.rust-lang.org
fn read_exact_at(&self, buf: &mut [u8], offset: u64) -> io::Result<()>
Reads the exact number of bytes required to fill buf from the given offset.
method
std
Stable since 1.33.0
Version 1.100.0-nightly
doc.rust-lang.org
fn read_at(&self, buf: &mut [u8], offset: u64) -> io::Result<usize>
Reads a number of bytes starting from a given offset.
method
std
Stable since 1.15.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait FileExt
Unix-specific extensions to fs::File.
trait
std
Stable since 1.15.0
Version 1.100.0-nightly