pub trait DownloadObservation {
// Required methods
fn progress(&self, progress: DownloadProgress);
fn terminal(&self, event: DownloadEvent);
}Expand description
Defines the first-order observation stream emitted by one download.
Required Methods§
Sourcefn progress(&self, progress: DownloadProgress)
fn progress(&self, progress: DownloadProgress)
Observes non-terminal byte progress.
Sourcefn terminal(&self, event: DownloadEvent)
fn terminal(&self, event: DownloadEvent)
Observes terminal download completion or failure.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".