pub struct ProgressBar {
pub total_steps: usize,
pub current: usize,
pub label: Option<String>,
pub style: ProgressStyle,
}
Expand description
Struct-based progress bar
Fields§
§total_steps: usize
§current: usize
§label: Option<String>
§style: ProgressStyle
Implementations§
Source§impl ProgressBar
impl ProgressBar
pub fn new(total_steps: usize, style: ProgressStyle) -> Self
pub fn set_label(&mut self, label: &str)
pub fn set_progress(&mut self, value: usize)
pub fn tick(&mut self)
pub fn start_auto(&mut self, duration_ms: u64)
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