pub struct DirEntry {
pub name: ShortFileName,
pub mtime: Timestamp,
pub ctime: Timestamp,
pub attributes: Attributes,
pub cluster: Cluster,
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: ShortFileName
The name of the file
mtime: Timestamp
When the file was last modified
ctime: Timestamp
When the file was first created
attributes: Attributes
The file attributes (Read Only, Archive, etc)
cluster: Cluster
The starting cluster of the file. The FAT tells us the following Clusters.
size: u32
The size of the file in bytes.
entry_block: BlockIdx
The disk block of this entry
entry_offset: u32
The offset on its block (in bytes)
Trait Implementations§
impl Eq for DirEntry
impl StructuralPartialEq for DirEntry
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