Skip to main content

Module stream

Module stream 

Source
Expand description

stream feature: a futures_core::Stream adapter over Dir listing, so a directory can be consumed with StreamExt (.next(), .collect(), try_for_each, …). Rust-only; never crosses the FFI boundary.

Structs§

DirStream
A pull-based stream of DirEntry over an open Dir, yielding entries one at a time (fetched a server batch at a time underneath). It holds the Dir open for its lifetime; an error ends the stream after it is yielded.