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§
Sourcefn pause_capability(&mut self, supported: bool)
fn pause_capability(&mut self, supported: bool)
Interprets the pause_capability operation.
Sourcefn progress(
&mut self,
destination: PathBuf,
downloaded: u64,
total: Option<u64>,
)
fn progress( &mut self, destination: PathBuf, downloaded: u64, total: Option<u64>, )
Interprets the progress operation.
Sourcefn program_failed(&mut self, summary: String, detail: String)
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".