pub trait Progress {
    // Required methods
    fn set_message(&self, msg: Cow<'static, str>);
    fn increment(&self, delta: u64);

    // Provided method
    fn sub_progress(&self, _total: u64) -> Box<dyn Progress> { ... }
}
Expand description

Trait for propagating progress information while constructing the package.

Required Methods§

source

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

Updates the message displayed regarding progress constructing the package.

source

fn increment(&self, delta: u64)

Increments the number of things which have completed.

Provided Methods§

source

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

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

Implementors§