Struct embedded_sdmmc::DirEntry
source · pub struct DirEntry {
pub name: ShortFileName,
pub mtime: Timestamp,
pub ctime: Timestamp,
pub attributes: Attributes,
pub cluster: ClusterId,
pub size: u32,
pub entry_block: BlockIdx,
pub entry_offset: u32,
}Expand description
Represents a directory entry, which tells you about other files and directories.
Fields§
§name: ShortFileNameThe name of the file
mtime: TimestampWhen the file was last modified
ctime: TimestampWhen the file was first created
attributes: AttributesThe file attributes (Read Only, Archive, etc)
cluster: ClusterIdThe starting cluster of the file. The FAT tells us the following Clusters.
size: u32The size of the file in bytes.
entry_block: BlockIdxThe disk block of this entry
entry_offset: u32The offset on its block (in bytes)
Trait Implementations§
source§impl PartialEq for DirEntry
impl PartialEq for DirEntry
impl Eq for DirEntry
impl StructuralPartialEq for DirEntry
Auto Trait Implementations§
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