Trait genfs::Dir
[−]
[src]
pub trait Dir<T: DirEntry, E>: Iterator<Item = Result<T, E>> { }
Iterator over the entries in a directory.
This iterator is returned from the read_dir
function of this module and
will yield instances of Result<
DirEntry
>
. Through a
DirEntry
information like the entry's path and possibly other metadata
can be learned.
Errors
This Result
will be an Err
if there's some sort of intermittent
IO error during iteration.