pub struct CapturedDiagnostics {
pub log: String,
pub counts: ReportCounts,
}Expand description
Diagnostics captured from a worker thread by capture, for the main thread
to fold back in via replay_captured. Carries both the already-formatted
log text AND the REPORT count deltas — LOG_BUFFER and REPORT are BOTH
#[thread_local], so forwarding only the text would still leave
status_code blind to a worker’s failures.
Fields§
§log: String§counts: ReportCountsAuto Trait Implementations§
impl Freeze for CapturedDiagnostics
impl RefUnwindSafe for CapturedDiagnostics
impl Send for CapturedDiagnostics
impl Sync for CapturedDiagnostics
impl Unpin for CapturedDiagnostics
impl UnsafeUnpin for CapturedDiagnostics
impl UnwindSafe for CapturedDiagnostics
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