pub struct MultiProgress { /* private fields */ }Expand description
Multi-progress bar manager for concurrent operations.
Implementations§
Source§impl MultiProgress
impl MultiProgress
Sourcepub const fn from_raw(mp: IndicatifMultiProgress) -> Self
pub const fn from_raw(mp: IndicatifMultiProgress) -> Self
Wrap an existing indicatif::MultiProgress.
Sourcepub const fn raw(&self) -> &IndicatifMultiProgress
pub const fn raw(&self) -> &IndicatifMultiProgress
Access the underlying indicatif::MultiProgress.
Sourcepub fn add_bar(&self, prefix: impl Into<String>, total: u64) -> ProgressBar
pub fn add_bar(&self, prefix: impl Into<String>, total: u64) -> ProgressBar
Add a bar-style progress with the given prefix and total.
Sourcepub fn insert_bar_after(
&self,
after: &ProgressBar,
prefix: impl Into<String>,
total: u64,
) -> ProgressBar
pub fn insert_bar_after( &self, after: &ProgressBar, prefix: impl Into<String>, total: u64, ) -> ProgressBar
Add a bar inserted after another bar (keeps ordering stable).
Sourcepub fn add_spinner(&self, prefix: impl Into<String>) -> ProgressBar
pub fn add_spinner(&self, prefix: impl Into<String>) -> ProgressBar
Add a spinner-style progress.
Sourcepub fn add_static_line(
&self,
prefix: impl Into<String>,
msg: impl Into<Cow<'static, str>>,
) -> ProgressBar
pub fn add_static_line( &self, prefix: impl Into<String>, msg: impl Into<Cow<'static, str>>, ) -> ProgressBar
Add a static text line (no animation, no bar).
Sourcepub fn println(&self, msg: impl AsRef<str>) -> Result<()>
pub fn println(&self, msg: impl AsRef<str>) -> Result<()>
Print a line above the progress bars (for completed items).
Sourcepub fn remove(&self, bar: &ProgressBar)
pub fn remove(&self, bar: &ProgressBar)
Remove a progress bar from the display.
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 UnsafeUnpin 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