pub struct DirEntry {
pub name: Vec<u8>,
pub inode: u64,
pub ftype: Option<u8>,
}Expand description
A single directory entry: a name, the inode it points at, and — when the filesystem’s ftype feature is on — the on-disk file-type byte.
. and .. are not surfaced for short-form directories (they are implicit);
a block directory carries them explicitly and they appear verbatim.
Fields§
§name: Vec<u8>The entry name, raw bytes (XFS names are not guaranteed UTF-8).
inode: u64The inode number this entry points at.
ftype: Option<u8>The on-disk ftype byte, or None when the filesystem has no ftype
feature (a no-ftype short-form/block directory omits the byte entirely).
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 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