pub trait TransferProgress: Send + Sync {
// Provided methods
fn begin(&self, _total_bytes: Option<u64>) { ... }
fn advance(&self, _delta: u64) { ... }
fn finish(&self) { ... }
}Expand description
Progress sink for streaming uploads and downloads.
Implement this trait when you want upload and download helpers to report byte-level transfer progress into your own logging, UI, or terminal progress bar implementation.
Provided Methods§
Implementations on Foreign Types§
impl TransferProgress for ()
Source§impl TransferProgress for ProgressBar
Available on crate feature indicatif only.
impl TransferProgress for ProgressBar
Available on crate feature
indicatif only.