pub trait Reporter: Send + Sync {
// Required methods
fn on_download_start(
&self,
name: &str,
version: &Version,
size: Option<u64>,
) -> usize;
fn on_download_progress(&self, id: usize, inc: u64);
fn on_download_complete(&self, id: usize);
}Expand description
Progress reporter for binary downloads.
Required Methods§
Sourcefn on_download_start(
&self,
name: &str,
version: &Version,
size: Option<u64>,
) -> usize
fn on_download_start( &self, name: &str, version: &Version, size: Option<u64>, ) -> usize
Called when a download starts.
Sourcefn on_download_progress(&self, id: usize, inc: u64)
fn on_download_progress(&self, id: usize, inc: u64)
Called when download progress is made.
Sourcefn on_download_complete(&self, id: usize)
fn on_download_complete(&self, id: usize)
Called when a download completes.