pub struct Entry {
pub depth: usize,
pub file_name: OsString,
pub file_type: FileType,
pub metadata: Result<Metadata>,
pub parent_path: Arc<Path>,
pub directory_id: Option<DirectoryId>,
pub parent_directory_id: Option<DirectoryId>,
}Expand description
A filesystem entry produced by walk.
Fields§
§depth: usizeDistance from the walk root: 0 for the root, 1 for its children, and so on.
file_name: OsStringFile name relative to parent_path.
file_type: FileTypeFilesystem entry type without following symbolic links.
metadata: Result<Metadata>Entry metadata, or the error encountered while reading it.
parent_path: Arc<Path>Path containing this entry.
directory_id: Option<DirectoryId>Dense identifier of this directory within the current walk, or None for non-directories.
parent_directory_id: Option<DirectoryId>Dense identifier of the directory containing this entry, or None for a walk root.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Entry
impl !UnwindSafe for Entry
impl Freeze for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
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