pub struct FileAttr {
pub size: u64,
pub blocks: u64,
pub atime: SystemTime,
pub mtime: SystemTime,
pub ctime: SystemTime,
pub kind: FileType,
pub perm: u16,
pub nlink: u32,
pub uid: u32,
pub gid: u32,
pub rdev: u32,
pub blksize: u32,
}Expand description
file attributes
Fields§
§size: u64Size in bytes
blocks: u64Size in blocks
atime: SystemTimeTime of last access
mtime: SystemTimeTime of last modification
ctime: SystemTimeTime of last change
kind: FileTypeKind of file (directory, file, pipe, etc)
perm: u16Permissions
nlink: u32Number of hard links
uid: u32User id
gid: u32Group id
rdev: u32Rdev
blksize: u32Trait Implementations§
Source§impl Ord for FileAttr
impl Ord for FileAttr
Source§impl PartialOrd for FileAttr
impl PartialOrd for FileAttr
impl Copy for FileAttr
impl Eq for FileAttr
impl StructuralPartialEq for FileAttr
Auto Trait Implementations§
impl Freeze for FileAttr
impl RefUnwindSafe for FileAttr
impl Send for FileAttr
impl Sync for FileAttr
impl Unpin for FileAttr
impl UnwindSafe for FileAttr
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