pub struct DirEntry { /* private fields */ }
Expand description
A thin wrapper for Properties
represing a directory entry
Methods from Deref<Target = Properties>§
Sourcepub fn attributes(&self) -> &Attributes
pub fn attributes(&self) -> &Attributes
Get the corresponding Attributes
to this entry
Sourcepub fn creation_time(&self) -> &PrimitiveDateTime
pub fn creation_time(&self) -> &PrimitiveDateTime
Find out when this entry was created (max resolution: 1ms)
Returns a PrimitiveDateTime
from the time
crate
Sourcepub fn modification_time(&self) -> &PrimitiveDateTime
pub fn modification_time(&self) -> &PrimitiveDateTime
Find out when this entry was last modified (max resolution: 2 secs)
Returns a PrimitiveDateTime
from the time
crate
Sourcepub fn last_accessed_date(&self) -> &Date
pub fn last_accessed_date(&self) -> &Date
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DirEntry
impl RefUnwindSafe for DirEntry
impl Send for DirEntry
impl Sync for DirEntry
impl Unpin for DirEntry
impl UnwindSafe for DirEntry
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