Struct include_dir::Metadata
source · [−]pub struct Metadata { /* private fields */ }
Expand description
Basic metadata for a file.
Implementations
sourceimpl Metadata
impl Metadata
sourcepub const fn new(
accessed: Duration,
created: Duration,
modified: Duration
) -> Self
pub const fn new(
accessed: Duration,
created: Duration,
modified: Duration
) -> Self
Create a new Metadata
using the number of seconds since the
SystemTime::UNIX_EPOCH
.
sourcepub fn accessed(&self) -> SystemTime
pub fn accessed(&self) -> SystemTime
Get the time this file was last accessed.
See also: std::fs::Metadata::accessed()
.
sourcepub fn created(&self) -> SystemTime
pub fn created(&self) -> SystemTime
Get the time this file was created.
See also: std::fs::Metadata::created()
.
sourcepub fn modified(&self) -> SystemTime
pub fn modified(&self) -> SystemTime
Get the time this file was last modified.
See also: std::fs::Metadata::modified()
.
Trait Implementations
impl Copy for Metadata
impl Eq for Metadata
impl StructuralEq for Metadata
impl StructuralPartialEq for Metadata
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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