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§

source

fn status_changed( &mut self, pkgname: String, steps_done: u64, total_steps: u64, action: String )

source

fn error( &mut self, pkgname: String, steps_done: u64, total_steps: u64, error: String )

Trait Implementations§

source§

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.

§

type Id = (D, y, n, I, n, s, t, a, l, l, P, r, o, g, r, e, s, s)

A type-level representation of the type’s C++ namespace and type name. Read more
§

type Kind = Trivial

Implementors§