pub struct ProgressTracker { /* private fields */ }Expand description
Tracks the current UI progress operation, ignoring stale updates.
Implementations§
Source§impl ProgressTracker
impl ProgressTracker
Sourcepub fn apply(&mut self, update: ProgressUpdate) -> bool
pub fn apply(&mut self, update: ProgressUpdate) -> bool
Apply an update only when it belongs to the current operation.
pub fn phase(&self) -> Option<ProgressPhase>
Trait Implementations§
Source§impl Debug for ProgressTracker
impl Debug for ProgressTracker
Auto Trait Implementations§
impl Freeze for ProgressTracker
impl RefUnwindSafe for ProgressTracker
impl Send for ProgressTracker
impl Sync for ProgressTracker
impl Unpin for ProgressTracker
impl UnsafeUnpin 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