ProgressBar

Trait ProgressBar 

Source
pub trait ProgressBar {
    // Required methods
    fn init(&self, count: usize);
    fn println(&self, status: &str, msg: &str);
    fn inc(&self, delta: usize);
    fn finish(&self);
}
Expand description

Implemented by progress bars.

This is used to abstract a UI for the registry resolver.

Required Methods§

Source

fn init(&self, count: usize)

Initializes the progress bar with the given count.

Source

fn println(&self, status: &str, msg: &str)

Prints a message and then redraws the progress bar.

Source

fn inc(&self, delta: usize)

Increments the progress bar by the given amount.

Source

fn finish(&self)

Implementors§