pub struct DiagnosticGates {
pub report: LogState,
pub muted_errors: usize,
/* private fields */
}Expand description
The whole diagnostic tally of this thread: the REPORT plus the gates
that live beside it — the consecutive-error runaway tracker, the
too-many-errors latch and the Fatal-line dedupe. A discarded speculative
scope (logger::DiagnosticsHold) restores all of them together, so the
errors it dropped can neither count nor trip a cap that would then mute the
document’s own errors.
Fields§
§report: LogStateThe report counters at the snapshot.
muted_errors: usizeThe Errors dropped after a Fatal so far: a speculative run still sees its own as failures.
Trait Implementations§
Source§impl Clone for DiagnosticGates
impl Clone for DiagnosticGates
Auto Trait Implementations§
impl Freeze for DiagnosticGates
impl RefUnwindSafe for DiagnosticGates
impl Send for DiagnosticGates
impl Sync for DiagnosticGates
impl Unpin for DiagnosticGates
impl UnsafeUnpin for DiagnosticGates
impl UnwindSafe for DiagnosticGates
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