#[repr(C)]pub struct DirEntry {
pub file_type: FileType,
pub name: [u8; 11],
pub size: u32,
pub mtime: Timestamp,
pub ctime: Timestamp,
pub mode: FileMode,
}Expand description
Describes a file as it exists on disk.
Fields§
§file_type: FileTypeThe file of the file this entry represents
name: [u8; 11]The name of the file (not including its full path)
size: u32The sie of the file in bytes
mtime: TimestampWhen this file was last modified
ctime: TimestampWhen this file was created
mode: FileModeThe various mode bits set on this file
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