pub struct MultiProgress { /* private fields */ }
Expand description
Minimal multi-progress manager that stacks multiple ProgressBar lines. Rendering uses ANSI cursor movement; works in most modern terminals.
Implementations§
Source§impl MultiProgress
impl MultiProgress
pub fn new() -> Self
Sourcepub fn add_bar(
&mut self,
label: &str,
total_steps: usize,
style: ProgressStyle,
) -> usize
pub fn add_bar( &mut self, label: &str, total_steps: usize, style: ProgressStyle, ) -> usize
Add a bar and return its index for later updates.
pub fn get_bar_mut(&mut self, idx: usize) -> Option<&mut ProgressBar>
pub fn tick(&mut self, idx: usize)
pub fn set_progress(&mut self, idx: usize, value: usize)
pub fn set_bytes_processed(&mut self, idx: usize, bytes: u64)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MultiProgress
impl RefUnwindSafe for MultiProgress
impl Send for MultiProgress
impl Sync for MultiProgress
impl Unpin for MultiProgress
impl UnwindSafe for MultiProgress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more