#[non_exhaustive]pub struct DirEntry {
pub name: String,
pub file_id: u64,
pub date_added: u64,
pub flags: u16,
}Expand description
A directory entry.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe entry name (the directory-record key’s name string).
file_id: u64file_id — the target inode number.
date_added: u64date_added — when the entry was added (ns since 1970, distinct from the
inode’s own timestamps; not updated on an in-place rename).
flags: u16Directory-entry flags (j_drec_val_t.flags).
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 UnsafeUnpin 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