pub struct ProgressGuard { /* private fields */ }Expand description
Progress reporter: after delay, emit one localized line to stderr if still running.
done is an AtomicBool shared with a background task (not Mutex<bool>).
Stores/loads use Ordering::SeqCst so finish is visible before the delayed
write without relying on abort alone.
§Drop / non-orphan tasks
Tokio’s JoinHandle detaches the task on drop (does not abort). This guard
implements Drop so early ? returns and cancel races still abort the timer
(Rules Rust: no orphan critical tasks; fixed fan-out of at most one progress task).
Implementations§
Trait Implementations§
Source§impl Drop for ProgressGuard
impl Drop for ProgressGuard
Auto Trait Implementations§
impl Freeze for ProgressGuard
impl RefUnwindSafe for ProgressGuard
impl Send for ProgressGuard
impl Sync for ProgressGuard
impl Unpin for ProgressGuard
impl UnsafeUnpin for ProgressGuard
impl UnwindSafe for ProgressGuard
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