pub struct RuntimeOperatorStageGuard { /* private fields */ }Expand description
Exactly-once Started/terminal guardian for one operator substage.
Implementations§
Source§impl RuntimeOperatorStageGuard
impl RuntimeOperatorStageGuard
Sourcepub fn start(
observation: RuntimeObservationHandle,
plan_execution_id: Option<PlanExecutionId>,
parent_span_id: Option<RuntimeSpanId>,
stage_kind: RuntimeOperatorStageKind,
identity: RuntimeOperatorStageIdentity,
) -> Self
pub fn start( observation: RuntimeObservationHandle, plan_execution_id: Option<PlanExecutionId>, parent_span_id: Option<RuntimeSpanId>, stage_kind: RuntimeOperatorStageKind, identity: RuntimeOperatorStageIdentity, ) -> Self
Emits Started immediately and returns a guard that emits one terminal.
Sourcepub fn finish(self, output_rows: Option<u64>, output_bytes: Option<u64>)
pub fn finish(self, output_rows: Option<u64>, output_bytes: Option<u64>)
Records successful completion with optional output facts.
Sourcepub fn finish_with_strategy_label(
self,
strategy_label: impl Into<String>,
output_rows: Option<u64>,
output_bytes: Option<u64>,
)
pub fn finish_with_strategy_label( self, strategy_label: impl Into<String>, output_rows: Option<u64>, output_bytes: Option<u64>, )
Attach a native fit outcome known only after the operation completes.
Sourcepub fn fail(self, error: &QueryError)
pub fn fail(self, error: &QueryError)
Records structured failure or cancellation from a native error.
Trait Implementations§
Source§impl Debug for RuntimeOperatorStageGuard
impl Debug for RuntimeOperatorStageGuard
Source§impl Drop for RuntimeOperatorStageGuard
impl Drop for RuntimeOperatorStageGuard
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeOperatorStageGuard
impl !UnwindSafe for RuntimeOperatorStageGuard
impl Freeze for RuntimeOperatorStageGuard
impl Send for RuntimeOperatorStageGuard
impl Sync for RuntimeOperatorStageGuard
impl Unpin for RuntimeOperatorStageGuard
impl UnsafeUnpin for RuntimeOperatorStageGuard
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
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