Struct os::fs::Stat

source · []
#[repr(C)]
pub struct Stat { pub dev: u64, pub ino: u64, pub mode: StatMode, pub nlink: u32, pad: [u64; 7], }
Expand description

The stat of a inode

Fields

dev: u64

ID of device containing file

ino: u64

inode number

mode: StatMode

file type and mode

nlink: u32

number of hard links

pad: [u64; 7]

unused pad

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.