pub trait Progress {
// Required methods
fn print_start(&mut self);
fn print_progress(&mut self, state: &DownloadState);
fn print_finish(&mut self, state: &DownloadState);
}
Expand description
Manages progress reporting for downloads.
Required Methods§
sourcefn print_start(&mut self)
fn print_start(&mut self)
Invoked when a download is started.
sourcefn print_progress(&mut self, state: &DownloadState)
fn print_progress(&mut self, state: &DownloadState)
Invoked repeatedly while a download is ongoing.
sourcefn print_finish(&mut self, state: &DownloadState)
fn print_finish(&mut self, state: &DownloadState)
Invoked when a download is finished.