pub type ProgressCallback = Arc<dyn Fn(&str, u64, u64) + Send + Sync>;Expand description
Callback for download progress reporting.
Arguments: (filename, bytes_downloaded, total_bytes).
total_bytes may be 0 if the server did not provide a Content-Length header.
Aliased Type§
pub struct ProgressCallback { /* private fields */ }