pub struct DirEntry<'a, S>{ /* private fields */ }Expand description
A thin wrapper for Properties representing a directory entry
Implementations§
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) -> &Option<PrimitiveDateTime>
pub fn creation_time(&self) -> &Option<PrimitiveDateTime>
Find out when this entry was created (max resolution: 1ms)
Returns an Option containing a PrimitiveDateTime from the time crate,
since that field is specified as optional in the FAT32 specification
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) -> &Option<Date>
pub fn last_accessed_date(&self) -> &Option<Date>
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> Freeze for DirEntry<'a, S>
impl<'a, S> !RefUnwindSafe for DirEntry<'a, S>
impl<'a, S> !Send for DirEntry<'a, S>
impl<'a, S> !Sync for DirEntry<'a, S>
impl<'a, S> Unpin for DirEntry<'a, S>
impl<'a, S> !UnwindSafe for DirEntry<'a, S>
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