Skip to main content

TransferObservationInterpreter

Trait TransferObservationInterpreter 

Source
pub trait TransferObservationInterpreter {
    // Required methods
    fn pause_capability(&mut self, supported: bool);
    fn started(&mut self);
    fn elapsed(&mut self, elapsed: Duration);
    fn progress(
        &mut self,
        destination: PathBuf,
        downloaded: u64,
        total: Option<u64>,
    );
    fn completed(&mut self, destination: PathBuf, bytes: u64);
    fn failed(&mut self, destination: PathBuf, message: String);
    fn program_failed(&mut self, summary: String, detail: String);
}
Expand description

Interprets one TransferObservation operation at a time.

Required Methods§

Source

fn pause_capability(&mut self, supported: bool)

Interprets the pause_capability operation.

Source

fn started(&mut self)

Interprets the started operation.

Source

fn elapsed(&mut self, elapsed: Duration)

Interprets the elapsed operation.

Source

fn progress( &mut self, destination: PathBuf, downloaded: u64, total: Option<u64>, )

Interprets the progress operation.

Source

fn completed(&mut self, destination: PathBuf, bytes: u64)

Interprets the completed operation.

Source

fn failed(&mut self, destination: PathBuf, message: String)

Interprets the failed operation.

Source

fn program_failed(&mut self, summary: String, detail: String)

Interprets the program_failed operation.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§