Trait rust_apt::raw::progress::InstallProgress
source · pub trait InstallProgress {
// Required methods
fn status_changed(
&mut self,
pkgname: String,
steps_done: u64,
total_steps: u64,
action: String
);
fn error(
&mut self,
pkgname: String,
steps_done: u64,
total_steps: u64,
error: String
);
}Expand description
Trait you can impl on any struct to customize the output of installation progress.
Required Methods§
fn status_changed( &mut self, pkgname: String, steps_done: u64, total_steps: u64, action: String )
fn error( &mut self, pkgname: String, steps_done: u64, total_steps: u64, error: String )
Trait Implementations§
source§impl ExternType for Box<dyn InstallProgress>
impl ExternType for Box<dyn InstallProgress>
Impl for sending InstallProgress across the barrier. TODO: Needs to be reviewed in GitLab MR, because I’ve got just about zero clue what I’m doing.