pub struct ReportCounts {
pub debug: usize,
pub info: usize,
pub warning: usize,
pub error: usize,
pub fatal: bool,
}Expand description
A thread-portable snapshot of the REPORT’s integer status counters
(everything EXCEPT the arena-SymStr-keyed undefined/missing maps,
whose keys are interner ids local to one thread’s arena). Used to forward a
worker thread’s diagnostic tally back to the main thread: REPORT is
#[thread_local], so an Error!/Warn! raised on a spawned post-processing
worker increments only that worker’s counters and is invisible to the
main-thread status_code unless merged here. See
crate::util::logger::capture / crate::util::logger::replay_captured.
Fields§
§debug: usize§info: usize§warning: usize§error: usize§fatal: boolTrait Implementations§
Source§impl Clone for ReportCounts
impl Clone for ReportCounts
Source§fn clone(&self) -> ReportCounts
fn clone(&self) -> ReportCounts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReportCounts
Source§impl Default for ReportCounts
impl Default for ReportCounts
Source§fn default() -> ReportCounts
fn default() -> ReportCounts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReportCounts
impl RefUnwindSafe for ReportCounts
impl Send for ReportCounts
impl Sync for ReportCounts
impl Unpin for ReportCounts
impl UnsafeUnpin for ReportCounts
impl UnwindSafe for ReportCounts
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