pub struct Metadata { /* private fields */ }
Expand description
Wrapper for fs::Metadata
.
Implementations§
Source§impl Metadata
impl Metadata
Sourcepub fn file_type(&self) -> FileType
pub fn file_type(&self) -> FileType
Wrapper for Metadata::file_type
.
Sourcepub fn is_dir(&self) -> bool
pub fn is_dir(&self) -> bool
Wrapper for Metadata::is_dir
.
Sourcepub fn is_file(&self) -> bool
pub fn is_file(&self) -> bool
Wrapper for Metadata::is_file
.
Sourcepub fn len(&self) -> u64
pub fn len(&self) -> u64
Wrapper for Metadata::len
.
Sourcepub fn permissions(&self) -> Permissions
pub fn permissions(&self) -> Permissions
Wrapper for Metadata::permissions
.
Sourcepub fn modified(&self) -> Result<SystemTime>
pub fn modified(&self) -> Result<SystemTime>
Wrapper for Metadata::modified
.
Sourcepub fn accessed(&self) -> Result<SystemTime>
pub fn accessed(&self) -> Result<SystemTime>
Wrapper for Metadata::accessed
.
Sourcepub fn created(&self) -> Result<SystemTime>
pub fn created(&self) -> Result<SystemTime>
Wrapper for Metadata::created
.
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 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