pub fn with_progress_bar<R: AsyncRead + Unpin>(
expected_length: u64,
reader: R,
) -> ProgressBarIter<R>
Expand description
Wraps a tokio::io::AsyncRead
with an indicatif::ProgressBar
.
The progress bar outputs to stderr iff that’s terminal, and nothing is displayed otherwise.