pub struct Metadata { /* private fields */ }Expand description
A file metadata
Because we can’t freely create a std::fs::Metadata object we have to
implement our own structure.
Implementations§
Source§impl Metadata
impl Metadata
Sourcepub fn simple_type(&self) -> SimpleType
pub fn simple_type(&self) -> SimpleType
Returns simplified type of the directory entry
Sourcepub fn permissions(&self) -> Permissions
pub fn permissions(&self) -> Permissions
Returns permissions of the entry
Sourcepub fn rdev_major(&self) -> Option<u32>
pub fn rdev_major(&self) -> Option<u32>
Return device node major of an device descriptor, if available
Sourcepub fn rdev_minor(&self) -> Option<u32>
pub fn rdev_minor(&self) -> Option<u32>
Return device node minor of an device descriptor, if available
Sourcepub fn atime(&self) -> Option<SystemTime>
pub fn atime(&self) -> Option<SystemTime>
Returns last access time, if available
Sourcepub fn btime(&self) -> Option<SystemTime>
pub fn btime(&self) -> Option<SystemTime>
Returns creation, if available
Sourcepub fn ctime(&self) -> Option<SystemTime>
pub fn ctime(&self) -> Option<SystemTime>
Returns last status change time, if available
Sourcepub fn mtime(&self) -> Option<SystemTime>
pub fn mtime(&self) -> Option<SystemTime>
Returns last modification time, if available
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