Progress

Trait Progress 

Source
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§

Source

fn get_log(&self) -> &Logger

Returns the debug logger

Provided Methods§

Source

fn set_message(&self, _msg: Cow<'static, str>)

Updates the message displayed regarding progress constructing the package.

Source

fn increment_total(&self, _delta: u64)

Increments the number of things which need to be completed

Source

fn increment_completed(&self, _delta: u64)

Increments the number of things which have completed.

Source

fn sub_progress(&self, _total: u64) -> Box<dyn Progress>

Returns a new Progress which will report progress for a sub task.

Implementors§