pub struct Metadata { /* fields omitted */ }
Expand description
A file metadata
Because we can’t freely create a std::fs::Metadata
object we have to
implement our own structure.
Returns simplified type of the directory entry
Returns underlying stat structure
Returns true
if the entry is a regular file
Returns true
if the entry is a directory
Returns permissions of the entry
Return low level file type, if available
Return device node, if available
Return device node major of the file, if available
Return device node minor of the file, if available
Return device node major of an device descriptor, if available
Return device node minor of an device descriptor, if available
Return preferered I/O Blocksize, if available
Return the number of 512 bytes blocks, if available
Returns file size (same as len() but Option), if available
Returns number of hard-links, if available
Returns user id, if available
Returns group id, if available
Returns mode bits, if available
Returns last access time, if available
Returns creation, if available
Returns last status change time, if available
Returns last modification time, if available
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.