Struct indicatif::MultiProgress
[−]
[src]
pub struct MultiProgress { /* fields omitted */ }
Manages multiple progress bars from different threads.
Methods
impl MultiProgress
[src]
pub fn new() -> MultiProgress
[src]
Creates a new multi progress object that draws to stdout.
pub fn set_draw_target(&self, target: ProgressDrawTarget)
[src]
Sets a different draw target for the multiprogress bar.
pub fn add(&self, bar: ProgressBar) -> ProgressBar
[src]
Adds a progress bar.
The progress bar added will have the draw target changed to a remote draw target that is intercepted by the multi progress object.
pub fn join(&self) -> Result<()>
[src]
Waits for all progress bars to report that they are finished.
You need to call this as this will request the draw instructions from the remote progress bars. Not calling this will deadlock your program.
pub fn join_and_clear(&self) -> Result<()>
[src]
Works like join
but clears the progress bar in the end.