Skip to main content

ProgressReporter

Trait ProgressReporter 

Source
pub trait ProgressReporter {
    // Required methods
    fn start(&mut self, progress: &Progress);
    fn update(&mut self, progress: &Progress);
    fn finish(&mut self, progress: &Progress);
}
Expand description

Manages progress reporting for downloads.

Required Methods§

Source

fn start(&mut self, progress: &Progress)

Invoked when a download is started.

Source

fn update(&mut self, progress: &Progress)

Invoked repeatedly while a download is ongoing.

Source

fn finish(&mut self, progress: &Progress)

Invoked when a download is finished.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§