pub struct Reporter { /* private fields */ }Expand description
A cloneable, thread-safe counter for one phase, from Phase::reporter.
advance is a saturating atomic update: no clock, callback, lock, or tree walk.
Counts saturate and record the overflow. Reports after the phase finishes,
and reports to a phase that split, are ignored.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Reporter
impl RefUnwindSafe for Reporter
impl Send for Reporter
impl Sync for Reporter
impl Unpin for Reporter
impl UnsafeUnpin for Reporter
impl UnwindSafe for Reporter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReportExt for T
impl<T> ReportExt for T
Source§fn batched(self, threshold: NonZeroU64) -> Batch<Self>where
Self: Sized,
fn batched(self, threshold: NonZeroU64) -> Batch<Self>where
Self: Sized,
Buffer one worker’s reports, publishing them in batches of at least
threshold units, and the remainder on Batch::flush or drop. Read more