pub struct DirEntry {
pub name: String,
pub entry_type: EntryType,
pub size: u64,
pub symlink_target: Option<PathBuf>,
}Expand description
A directory entry returned by list.
Fields§
§name: StringName of the entry (not full path).
entry_type: EntryTypeType of entry.
size: u64Size in bytes (0 for directories).
symlink_target: Option<PathBuf>For symlinks, the target path.
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