pub async fn readdir_with_timeout(
    dir: &DirectoryProxy,
    timeout: Duration
) -> Result<Vec<DirEntry>, EnumerateError>
Expand description

Returns a sorted Vec of directory entries contained directly in the given directory proxy. The returned entries will not include “.” or nodes from any subdirectories. Timeouts if the read takes longer than the given timeout duration.