Struct InodeAttr

Source
pub struct InodeAttr {
Show 17 fields pub inr: InodeNum, pub perm: u16, pub kind: InodeType, pub size: u64, pub blocks: u64, pub atime: SystemTime, pub mtime: SystemTime, pub ctime: SystemTime, pub btime: SystemTime, pub nlink: u16, pub uid: u32, pub gid: u32, pub gen: u32, pub blksize: u32, pub flags: u32, pub kernflags: u32, pub extsize: u32,
}
Expand description

Inode Metadata

Fields§

§inr: InodeNum

Inode number.

§perm: u16

UNIX Permissions.

§kind: InodeType

Type of the inode.

§size: u64

Inode data size.

§blocks: u64

Total number of blocks allocated.

§atime: SystemTime

Access time.

§mtime: SystemTime

Modify time.

§ctime: SystemTime

Change time.

§btime: SystemTime

Birth time.

§nlink: u16

Number of hard links.

§uid: u32

User ID.

§gid: u32

Group ID.

§gen: u32

Inode Generation.

§blksize: u32

Block size.

§flags: u32

Additional inode flags (like immutable).

§kernflags: u32

FreeBSD kernel flags.

§extsize: u32

Size of the extended attribute area.

Trait Implementations§

Source§

impl Debug for InodeAttr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.