Skip to main content

StatusReporter

Trait StatusReporter 

Source
pub trait StatusReporter: Send + Sync {
    // Provided methods
    fn on_download_batch(&self, _event: &DownloadBatch) { ... }
    fn on_download_started(&self, _event: &DownloadStarted) { ... }
    fn on_download_progress(&self, _event: &DownloadProgress) { ... }
    fn on_download_finished(&self, _event: &DownloadFinished) { ... }
    fn on_download_failed(&self, _event: &DownloadFailed) { ... }
}

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§