pub struct DirEntry {
pub name: String,
pub inode: u32,
pub kind: EntryKind,
pub size: u64,
}Expand description
A single directory entry returned by Filesystem::list.
Fields§
§name: String§inode: u32§kind: EntryKind§size: u64Size in bytes when this is a regular file. 0 for directories,
symlinks, devices, etc. Filesystems that can’t surface size
cheaply during a listing may also return 0 — callers that
need an authoritative figure should open the file and seek.
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