pub struct ObservationCtx<'a> {
pub workload: &'a str,
pub lang: &'a str,
pub stage: &'a str,
pub stage_kind: SubMsStageKind,
}Expand description
Context passed to SubMsObserver::on_record for each recorded sample.
Holds borrowed references to the harness-level identity (workload, lang)
and the stage’s identity (name, kind). Inputs and meta arrive via
SubMsObserver::on_summarize instead of per-record to keep this struct
pointer-sized (no map borrows on the hot path).
Fields§
§workload: &'a str§lang: &'a str§stage: &'a str§stage_kind: SubMsStageKindAuto Trait Implementations§
impl<'a> Freeze for ObservationCtx<'a>
impl<'a> RefUnwindSafe for ObservationCtx<'a>
impl<'a> Send for ObservationCtx<'a>
impl<'a> Sync for ObservationCtx<'a>
impl<'a> Unpin for ObservationCtx<'a>
impl<'a> UnsafeUnpin for ObservationCtx<'a>
impl<'a> UnwindSafe for ObservationCtx<'a>
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