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
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