Trait Progress

Source
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§

Source

fn print_start(&mut self)

Invoked when a download is started.

Source

fn print_progress(&mut self, state: &DownloadState)

Invoked repeatedly while a download is ongoing.

Source

fn print_finish(&mut self, state: &DownloadState)

Invoked when a download is finished.

Implementors§