pub struct DirEntry {
pub name: String,
pub is_dir: bool,
pub size: u64,
pub mode_string: String,
pub is_symlink: bool,
}Expand description
DirEntry mirrors a single entry in a directory listing.
Fields§
§name: StringThe name of the entry.
is_dir: boolWhether the entry is a directory.
size: u64The size of the entry in bytes.
mode_string: StringThe Go-style permission string, e.g. “-rw-r–r–”.
is_symlink: boolWhether the entry is a symlink.
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