Skip to main content

Progress

Type Alias Progress 

Source
pub type Progress<'a> = dyn Fn(u64, Option<u64>) -> bool + Send + Sync + 'a;
Expand description

A download’s progress callback: bytes received so far and the total when the host said it; false stops the download.