Skip to main content

DownloadObservationInterpreter

Trait DownloadObservationInterpreter 

Source
pub trait DownloadObservationInterpreter {
    // Required methods
    fn progress(&mut self, progress: DownloadProgress);
    fn terminal(&mut self, event: DownloadEvent);
}
Expand description

Interprets one DownloadObservation operation at a time.

Required Methods§

Source

fn progress(&mut self, progress: DownloadProgress)

Interprets the progress operation.

Source

fn terminal(&mut self, event: DownloadEvent)

Interprets the terminal operation.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§