pub struct Progress { /* private fields */ }Expand description
Multi-task progress display.
Implementations§
Source§impl Progress
impl Progress
Sourcepub fn with_columns(self, columns: Vec<Box<dyn ProgressColumn>>) -> Self
pub fn with_columns(self, columns: Vec<Box<dyn ProgressColumn>>) -> Self
Set custom columns.
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Check if all tasks are finished.
Sourcepub fn render_to_string(&self) -> String
pub fn render_to_string(&self) -> String
Render the progress display.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Progress
impl !RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl !UnwindSafe for Progress
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
Source§impl<T> Measurable for Twhere
T: Renderable,
impl<T> Measurable for Twhere
T: Renderable,
Source§fn measure(&self, width: usize) -> Measurement
fn measure(&self, width: usize) -> Measurement
Measure this renderable at the given width.