4 releases (1 stable)
1.0.0 | Jan 17, 2021 |
---|---|
0.3.0 | Jan 15, 2021 |
0.2.0 | Jan 15, 2021 |
0.1.0 | Jan 15, 2021 |
#825 in Asynchronous
2,703 downloads per month
Used in tauri-plugin-upload
3.5MB
92 lines
Read Progress Stream
Wrap a futures stream and report bytes so that uploading files can indicate progress.
To see an example progress bar run:
cargo test -- --nocapture
lib.rs
:
Wrapper for a stream that stores the number
of bytes read so that uploading to S3 using the rusoto_s3
crate can indicate upload progress for larger files.
See the test for example usage and run with --nocapture
to
see the mock progress bar:
cargo test -- --nocapture