pub struct ProgressBar { /* private fields */ }Expand description
Progress bar for displaying processing status
Implementations§
Source§impl ProgressBar
impl ProgressBar
Sourcepub fn new_spinner(label: &str) -> Self
pub fn new_spinner(label: &str) -> Self
Create a new progress bar with unknown total (spinner mode)
Sourcepub fn update(&mut self, current: usize)
pub fn update(&mut self, current: usize)
Update progress (only renders if enough time has passed)
Sourcepub fn finish_with_message(&mut self, message: &str)
pub fn finish_with_message(&mut self, message: &str)
Finish with custom message
Auto Trait Implementations§
impl Freeze for ProgressBar
impl RefUnwindSafe for ProgressBar
impl Send for ProgressBar
impl Sync for ProgressBar
impl Unpin for ProgressBar
impl UnwindSafe for ProgressBar
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