#[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§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more