#[repr(transparent)]pub struct MetaData { /* private fields */ }Expand description
Metadata information about a file. This structure is returned from the metadata or symlink_metadata function or method and represents known metadata about a file such as its permissions, size, modification times, etc
Trait Implementations
sourceimpl MetaDataExt for MetaData
Available on Unix only.
impl MetaDataExt for MetaData
sourcefn accessed(&self) -> Result<SystemTime, Error>
fn accessed(&self) -> Result<SystemTime, Error>
Returns the last access time of this metadata. Read more
sourcefn created(&self) -> Result<SystemTime, Error>
fn created(&self) -> Result<SystemTime, Error>
Returns the creation time listed in this metadata. Read more
sourcefn is_symlink(&self) -> bool
fn is_symlink(&self) -> bool
nightly only.Returns true if this metadata is for a symbolic link.
sourcefn modified(&self) -> Result<SystemTime, Error>
fn modified(&self) -> Result<SystemTime, Error>
Returns the last modification time listed in this metadata. Read more
sourcefn atime_nsec(&self) -> i64
fn atime_nsec(&self) -> i64
Returns the last access time of the file, in nanoseconds since atime.
sourcefn mtime(&self) -> i64
fn mtime(&self) -> i64
Returns the last modification time of the file, in seconds since Unix Epoch.
sourcefn mtime_nsec(&self) -> i64
fn mtime_nsec(&self) -> i64
Returns the last modification time of the file, in nanoseconds since mtime.
sourcefn ctime(&self) -> i64
fn ctime(&self) -> i64
Returns the last status change time of the file, in seconds since Unix Epoch.
sourcefn ctime_nsec(&self) -> i64
fn ctime_nsec(&self) -> i64
Returns the last status change time of the file, in nanoseconds since ctime.
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