pub struct SealedRuntimeObservationSnapshot { /* private fields */ }Expand description
Immutable sealed snapshot accepted by the JSONL exporter.
Implementations§
Source§impl SealedRuntimeObservationSnapshot
impl SealedRuntimeObservationSnapshot
Sourcepub fn topology(&self) -> impl ExactSizeIterator<Item = &RuntimeTopologyRecord>
pub fn topology(&self) -> impl ExactSizeIterator<Item = &RuntimeTopologyRecord>
Static topology sorted by typed row identity.
Sourcepub fn events(&self) -> &[RuntimeTimelineEvent]
pub fn events(&self) -> &[RuntimeTimelineEvent]
Dynamic events sorted by recorder sequence.
Completeness, terminal, loss, and degradation metadata.
Sourcepub fn attempt_report(&self) -> Option<&QueryAttemptReport>
pub fn attempt_report(&self) -> Option<&QueryAttemptReport>
Fixed execution-attempt summary, when this observation belongs to an attempt.
The embedded report is the same immutable value delivered by
the attempt completion. In particular, report_ready_ns is
fixed before this snapshot is published and the JSONL footer
serializes this exact allocation.
Source§impl SealedRuntimeObservationSnapshot
impl SealedRuntimeObservationSnapshot
Sourcepub fn query_metrics(&self, plan: &PlanExecutionId) -> Option<&QueryMetrics>
pub fn query_metrics(&self, plan: &PlanExecutionId) -> Option<&QueryMetrics>
The metrics of plan execution plan, as frozen when its owner
projected them or, failing that, when this session sealed.
None means that the snapshot has no frozen metrics for that invocation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SealedRuntimeObservationSnapshot
impl RefUnwindSafe for SealedRuntimeObservationSnapshot
impl Send for SealedRuntimeObservationSnapshot
impl Sync for SealedRuntimeObservationSnapshot
impl Unpin for SealedRuntimeObservationSnapshot
impl UnsafeUnpin for SealedRuntimeObservationSnapshot
impl UnwindSafe for SealedRuntimeObservationSnapshot
Blanket Implementations§
impl<T> Allocation for T
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more