pub struct Metadata {
pub file_type: FileType,
pub size: u64,
pub blocks: u64,
pub mode: u32,
pub uid: u32,
pub gid: u32,
pub atime: u64,
pub mtime: u64,
pub ctime: u64,
pub nlink: u32,
}Expand description
File metadata.
Fields§
§file_type: FileTypeFile type
size: u64File size in bytes
blocks: u64Number of blocks allocated
mode: u32File mode (permissions)
uid: u32Owner user ID
gid: u32Owner group ID
atime: u64Access time (Unix timestamp)
mtime: u64Modification time (Unix timestamp)
ctime: u64Change time (Unix timestamp)
nlink: u32Number of hard links
Implementations§
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 UnsafeUnpin 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