Skip to main content

DownloadObservation

Trait DownloadObservation 

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

Source

fn progress(&self, progress: DownloadProgress)

Observes non-terminal byte progress.

Source

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".

Implementors§