We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61582e5 commit 7aec3d9Copy full SHA for 7aec3d9
std/src/sys/pal/wasi/fs.rs
@@ -31,7 +31,7 @@ pub struct ReadDir {
31
}
32
33
enum ReadDirState {
34
- /// Next DirEntry should be read from contents of buf at `offset`
+ /// Fill `buf` with `buf.len()` bytes starting from `next_read_offset`.
35
FillBuffer {
36
next_read_offset: wasi::Dircookie,
37
buf: Vec<u8>,
@@ -41,7 +41,8 @@ enum ReadDirState {
41
next_read_offset: Option<wasi::Dircookie>,
42
offset: usize,
43
},
44
- /// Do not fetch any more entries, process all entries
+ /// There is no more data to get in [`Self::FillBuffer`]; keep returning
45
+ /// entries via ProcessEntry until `buf` is exhausted.
46
RunUntilExhaustion {
47
48
0 commit comments