equal
deleted
inserted
replaced
17 fn complete(self); |
17 fn complete(self); |
18 } |
18 } |
19 |
19 |
20 const PROGRESS_DELAY: Duration = Duration::from_secs(1); |
20 const PROGRESS_DELAY: Duration = Duration::from_secs(1); |
21 |
21 |
22 /// A generic (determinate) progress bar. Stays hidden until [`PROGRESS_DELAY`] |
22 /// A generic (determinate) progress bar. Stays hidden until `PROGRESS_DELAY` |
23 /// to prevent flickering a progress bar for super fast operations. |
23 /// to prevent flickering a progress bar for super fast operations. |
24 pub struct HgProgressBar { |
24 pub struct HgProgressBar { |
25 progress: ProgressBar, |
25 progress: ProgressBar, |
26 has_been_shown: AtomicBool, |
26 has_been_shown: AtomicBool, |
27 } |
27 } |