1
Fork 0

Comment on when ReadDir is Err

Fixes #23426
This commit is contained in:
Steve Klabnik 2015-03-19 16:53:06 -04:00
parent 08dd30d9eb
commit 3e3408de0f

View file

@ -73,6 +73,11 @@ pub struct Metadata(fs_imp::FileAttr);
/// will yield instances of `io::Result<DirEntry>`. Through a `DirEntry`
/// information like the entry's path and possibly other metadata can be
/// learned.
///
/// # Failure
///
/// This `io::Result` will be an `Err` if there's some sort of intermittent
/// IO error during iteration.
#[stable(feature = "rust1", since = "1.0.0")]
pub struct ReadDir(fs_imp::ReadDir);