pub struct StagedProgressBar {
pub current_progress_bar: Rc<RefCell<Option<ProgressBar>>>,
}
Expand description
Helper struct for displaying progress bars for operations which may have multiple stages (e.g. erasing then writing), or whose byte size may not be known until the operation is underway.
Fields§
§current_progress_bar: Rc<RefCell<Option<ProgressBar>>>
Implementations§
Source§impl StagedProgressBar
impl StagedProgressBar
pub fn new() -> Self
pub fn enable_steady_tick(&self, duration: Duration)
Sourcepub fn bytes_per_second(&self) -> f64
pub fn bytes_per_second(&self) -> f64
Returns the overall bytes per second for the most recent stage (either completed or in progress).
Trait Implementations§
Source§impl Default for StagedProgressBar
impl Default for StagedProgressBar
Auto Trait Implementations§
impl Freeze for StagedProgressBar
impl !RefUnwindSafe for StagedProgressBar
impl !Send for StagedProgressBar
impl !Sync for StagedProgressBar
impl Unpin for StagedProgressBar
impl !UnwindSafe for StagedProgressBar
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