pub struct RuntimePlanExecutionLifecycle { /* private fields */ }Expand description
One plan invocation inside a query whose owner outlives native execution.
Finishing this lifecycle records and aggregates the plan outcome, but the admitted query owner remains responsible for cleanup boundaries and sealing.
Implementations§
Source§impl RuntimePlanExecutionLifecycle
impl RuntimePlanExecutionLifecycle
Sourcepub fn from_owner(
owner: RuntimeObservationOwner,
plan_execution_id: PlanExecutionId,
) -> Self
pub fn from_owner( owner: RuntimeObservationOwner, plan_execution_id: PlanExecutionId, ) -> Self
Opens a plan invocation using query-level owner authority retained by a caller such as the query-service admission ticket.
Sourcepub fn from_handle(
observation: RuntimeObservationHandle,
plan_execution_id: PlanExecutionId,
) -> Self
pub fn from_handle( observation: RuntimeObservationHandle, plan_execution_id: PlanExecutionId, ) -> Self
Opens a plan invocation on a coordinator-owned query observation.
The handle can record plan/task evidence but carries no terminal-seal authority. The external query coordinator owns the sole query terminal.
Sourcepub fn handle(&self) -> RuntimeObservationHandle
pub fn handle(&self) -> RuntimeObservationHandle
Returns cloneable recording access without terminal authority.
Sourcepub fn execution_scope(&self) -> RuntimeExecutionObservationScope
pub fn execution_scope(&self) -> RuntimeExecutionObservationScope
Returns the non-owning scope passed to schedulers and reservations.
Sourcepub fn finish(self, outcome: RuntimeTerminalOutcome)
pub fn finish(self, outcome: RuntimeTerminalOutcome)
Records the plan terminal and contributes its outcome to the query owner without sealing the shared observation session.
Trait Implementations§
Source§impl Drop for RuntimePlanExecutionLifecycle
impl Drop for RuntimePlanExecutionLifecycle
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimePlanExecutionLifecycle
impl !UnwindSafe for RuntimePlanExecutionLifecycle
impl Freeze for RuntimePlanExecutionLifecycle
impl Send for RuntimePlanExecutionLifecycle
impl Sync for RuntimePlanExecutionLifecycle
impl Unpin for RuntimePlanExecutionLifecycle
impl UnsafeUnpin for RuntimePlanExecutionLifecycle
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
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> ⓘ
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> ⓘ
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