pub struct Metadata {}Expand description
Filesystem node metadata.
Fields§
§device: u64ID of device containing file
inode: u64Inode number
nlink: u64Number of hard links
mode: NodePermissionPermission mode
node_type: NodeTypeNode type
uid: u32User ID of owner
gid: u32Group ID of owner
size: u64Total size in bytes
block_size: u64Block size for filesystem I/O
blocks: u64Number of 512B blocks allocated
rdev: DeviceIdDevice ID (if special file)
atime: DurationTime of last access
mtime: DurationTime of last modification
ctime: DurationTime of last status change
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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