cap_fs_ext

Trait OsMetadataExt

Source
pub trait OsMetadataExt {
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

Re-export these to allow them to be used with Reuse. Unix-specific extensions for MetadataExt.

This corresponds to std::os::unix::fs::MetadataExt.

Required Methods§

Source

fn dev(&self) -> u64

Returns the ID of the device containing the file.

Source

fn ino(&self) -> u64

Returns the inode number.

Source

fn mode(&self) -> u32

Returns the rights applied to this file.

Returns the number of hard links pointing to this file.

Source

fn uid(&self) -> u32

Returns the user ID of the owner of this file.

Source

fn gid(&self) -> u32

Returns the group ID of the owner of this file.

Source

fn rdev(&self) -> u64

Returns the device ID of this file (if it is a special one).

Source

fn size(&self) -> u64

Returns the total size of this file in bytes.

Source

fn atime(&self) -> i64

Returns the last access time of the file, in seconds since Unix Epoch.

Source

fn atime_nsec(&self) -> i64

Returns the last access time of the file, in nanoseconds since [atime].

Source

fn mtime(&self) -> i64

Returns the last modification time of the file, in seconds since Unix Epoch.

Source

fn mtime_nsec(&self) -> i64

Returns the last modification time of the file, in nanoseconds since [mtime].

Source

fn ctime(&self) -> i64

Returns the last status change time of the file, in seconds since Unix Epoch.

Source

fn ctime_nsec(&self) -> i64

Returns the last status change time of the file, in nanoseconds since [ctime].

Source

fn blksize(&self) -> u64

Returns the block size for filesystem I/O.

Source

fn blocks(&self) -> u64

Returns the number of blocks allocated to the file, in 512-byte units.

Implementors§