starry_api

Struct StatX

Source
#[repr(C)]
pub struct StatX {
Show 22 fields pub stx_mask: u32, pub stx_blksize: u32, pub stx_attributes: u64, pub stx_nlink: u32, pub stx_uid: u32, pub stx_gid: u32, pub stx_mode: u16, pub stx_ino: u64, pub stx_size: u64, pub stx_blocks: u64, pub stx_attributes_mask: u64, pub stx_atime: FsStatxTimestamp, pub stx_btime: FsStatxTimestamp, pub stx_ctime: FsStatxTimestamp, pub stx_mtime: FsStatxTimestamp, pub stx_rdev_major: u32, pub stx_rdev_minor: u32, pub stx_dev_major: u32, pub stx_dev_minor: u32, pub stx_mnt_id: u64, pub stx_dio_mem_align: u32, pub stx_dio_offset_align: u32,
}
Expand description

statx - get file status (extended) Standard C library (libc, -lc) https://man7.org/linux/man-pages/man2/statx.2.html

Fields§

§stx_mask: u32

Bitmask of what information to get.

§stx_blksize: u32

Block size for filesystem I/O.

§stx_attributes: u64

File attributes.

§stx_nlink: u32

Number of hard links.

§stx_uid: u32

User ID of owner.

§stx_gid: u32

Group ID of owner.

§stx_mode: u16

File mode (permissions).

§stx_ino: u64

Inode number.

§stx_size: u64

Total size, in bytes.

§stx_blocks: u64

Number of 512B blocks allocated.

§stx_attributes_mask: u64

Mask to show what’s supported in stx_attributes.

§stx_atime: FsStatxTimestamp

Last access timestamp.

§stx_btime: FsStatxTimestamp

Birth (creation) timestamp.

§stx_ctime: FsStatxTimestamp

Last status change timestamp.

§stx_mtime: FsStatxTimestamp

Last modification timestamp.

§stx_rdev_major: u32

Major device ID (if special file).

§stx_rdev_minor: u32

Minor device ID (if special file).

§stx_dev_major: u32

Major device ID of file system.

§stx_dev_minor: u32

Minor device ID of file system.

§stx_mnt_id: u64

Mount ID.

§stx_dio_mem_align: u32

Memory alignment for direct I/O.

§stx_dio_offset_align: u32

Offset alignment for direct I/O.

Trait Implementations§

Source§

impl Debug for StatX

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for StatX

Source§

fn default() -> StatX

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for StatX

§

impl RefUnwindSafe for StatX

§

impl Send for StatX

§

impl Sync for StatX

§

impl Unpin for StatX

§

impl UnwindSafe for StatX

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.