pub struct AttemptHandle(/* private fields */);Expand description
Cloneable record-only capability shared by every native fragment of one invocation. It cannot terminalize the attempt.
Implementations§
Source§impl AttemptHandle
impl AttemptHandle
Sourcepub fn attempt_id(&self) -> AttemptId
pub fn attempt_id(&self) -> AttemptId
The engine-minted identity of this invocation.
Sourcepub fn cancellation(&self) -> AttemptCancellation
pub fn cancellation(&self) -> AttemptCancellation
The attempt-scoped cooperative cancellation signal and deadline.
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Returns whether the attempt outcome is already terminal.
Sourcepub fn disposition(&self) -> Option<AttemptDisposition>
pub fn disposition(&self) -> Option<AttemptDisposition>
The current disposition, when planning or execution has classified it.
pub fn record_planning_started(&self) -> Result<(), AttemptLifecycleError>
pub fn record_planning_finished(&self) -> Result<(), AttemptLifecycleError>
pub fn set_disposition( &self, disposition: AttemptDisposition, ) -> Result<(), AttemptLifecycleError>
Sourcepub fn record_composed_schedule_projection(
&self,
projection: AttemptComposedScheduleProjection,
) -> Result<(), AttemptLifecycleError>
pub fn record_composed_schedule_projection( &self, projection: AttemptComposedScheduleProjection, ) -> Result<(), AttemptLifecycleError>
Publishes the engine-owned composed schedule into this attempt’s immutable report. The lifecycle verifies the projection’s attempt placement against the already-recorded admission fact; callers cannot replace the schedule after finalization.
pub fn record_physical_execution_started( &self, ) -> Result<(), AttemptLifecycleError>
pub fn record_gpu_execution_started(&self) -> Result<(), AttemptLifecycleError>
Sourcepub fn record_native_failure(&self, error: &QueryError)
pub fn record_native_failure(&self, error: &QueryError)
Retains the safe, closed projection of a borrowed native error without granting terminalization or sealing authority.
The record-only capability is used by adapter paths whose admitted handle may begin cleanup before the outer DataFusion wrapper returns the original error to the attempt owner. The full error remains on that returned path; this records only its bounded stable summary.
Trait Implementations§
Source§impl Clone for AttemptHandle
impl Clone for AttemptHandle
Auto Trait Implementations§
impl !RefUnwindSafe for AttemptHandle
impl !UnwindSafe for AttemptHandle
impl Freeze for AttemptHandle
impl Send for AttemptHandle
impl Sync for AttemptHandle
impl Unpin for AttemptHandle
impl UnsafeUnpin for AttemptHandle
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> 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> ⓘ
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