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
sourceimpl 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 RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more