pub trait Progress {
// Required method
fn get_log(&self) -> &Logger;
// Provided methods
fn set_message(&self, _msg: Cow<'static, str>) { ... }
fn increment_total(&self, _delta: u64) { ... }
fn increment_completed(&self, _delta: u64) { ... }
fn sub_progress(&self, _total: u64) -> Box<dyn Progress> { ... }
}Expand description
Trait for propagating progress information while constructing the package.
Required Methods§
Provided Methods§
Sourcefn set_message(&self, _msg: Cow<'static, str>)
fn set_message(&self, _msg: Cow<'static, str>)
Updates the message displayed regarding progress constructing the package.
Sourcefn increment_total(&self, _delta: u64)
fn increment_total(&self, _delta: u64)
Increments the number of things which need to be completed
Sourcefn increment_completed(&self, _delta: u64)
fn increment_completed(&self, _delta: u64)
Increments the number of things which have completed.