Function read_dir
async fn read_dir<impl AsRef<Path>: AsRef<std::path::Path>>(path: impl AsRef<Path>) -> Result<ReadDir>
Returns a stream over the entries within a directory.
This is an async version of std::fs::read_dir.
This operation is implemented by running the equivalent blocking
operation on a separate thread pool using spawn_blocking.