pub struct ProgressReporter { /* private fields */ }Expand description
Cross-process reporter handle passed to the work closure. Each
call to advance is a single atomic fetch_add (Relaxed ordering;
progress is observational, not a synchronization point).
Implementations§
Source§impl ProgressReporter
impl ProgressReporter
Sourcepub fn advance(&self, n: u64) -> u64
pub fn advance(&self, n: u64) -> u64
Add n to the progress counter. Returns the previous value.
Use Relaxed because progress is observational; the done
flag carries the happens-before edge.
Auto Trait Implementations§
impl Freeze for ProgressReporter
impl RefUnwindSafe for ProgressReporter
impl Send for ProgressReporter
impl Sync for ProgressReporter
impl Unpin for ProgressReporter
impl UnsafeUnpin for ProgressReporter
impl UnwindSafe for ProgressReporter
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