pub struct ProgressTracker { /* private fields */ }Expand description
Progress tracker for managing multiple progress instances
Implementations§
Source§impl ProgressTracker
impl ProgressTracker
Sourcepub fn new() -> ProgressTracker
pub fn new() -> ProgressTracker
Create a new progress tracker
Sourcepub fn cleanup_finished(&mut self, max_age: Duration)
pub fn cleanup_finished(&mut self, max_age: Duration)
Clean up old finished progress instances
Sourcepub fn cleanup_all_old(&mut self, max_age: Duration)
pub fn cleanup_all_old(&mut self, max_age: Duration)
Clean up all progress entries older than max_age (including active ones)
Sourcepub fn cleanup_inactive(&mut self, max_inactive_age: Duration)
pub fn cleanup_inactive(&mut self, max_inactive_age: Duration)
Clean up progress entries that have been inactive for too long
Trait Implementations§
Source§impl Debug for ProgressTracker
impl Debug for ProgressTracker
Source§impl Default for ProgressTracker
impl Default for ProgressTracker
Source§fn default() -> ProgressTracker
fn default() -> ProgressTracker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProgressTracker
impl RefUnwindSafe for ProgressTracker
impl Send for ProgressTracker
impl Sync for ProgressTracker
impl Unpin for ProgressTracker
impl UnwindSafe for ProgressTracker
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