pub struct Stat {Show 14 fields
pub ino: Inode,
pub kind: FileKind,
pub size: u64,
pub blocks: u64,
pub atime: SystemTime,
pub mtime: SystemTime,
pub ctime: SystemTime,
pub btime: SystemTime,
pub perm: u16,
pub nlink: u32,
pub uid: u32,
pub gid: u32,
pub rdev: u32,
pub blksize: u32,
}Expand description
POSIX-style file metadata.
Mirrors the fields a stat(2) caller cares about, plus the btrfs
btime. The struct is FUSE-independent: a FUSE adapter can build a
fuser::FileAttr from it with a small mapping, and a non-FUSE
embedder (offline tools, tests) can read the fields directly.
Fields§
§ino: Inode§kind: FileKind§size: u64§blocks: u64§atime: SystemTime§mtime: SystemTime§ctime: SystemTime§btime: SystemTimebtrfs creation time (otime), exposed for callers that surface
birthtime / crtime.
perm: u16Permission bits (mode & 0o7777).
nlink: u32§uid: u32§gid: u32§rdev: u32§blksize: u32Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stat
impl RefUnwindSafe for Stat
impl Send for Stat
impl Sync for Stat
impl Unpin for Stat
impl UnsafeUnpin for Stat
impl UnwindSafe for Stat
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