#[non_exhaustive]pub enum ToolAttemptExecutionError {
Show 16 variants
Handoff(InvocationAttemptHandoffError),
Registry(ToolProviderRegistryError),
Store(StoreError),
RunProvenanceMismatch,
Clock(InvocationClockError),
BudgetProvider(InvocationBudgetProviderError),
BudgetInsufficient,
Context(ToolContextError),
Input(ToolInputValidationError),
StoppedBeforeStart {
reason: ToolStopReason,
},
EventPayload(InvocationEventPayloadError),
JournalAppend,
RecoveredInvocationMismatch,
InvocationAdvanced,
UnsupportedStoreOutcome,
Terminal(ToolTerminalCommitError),
}Expand description
Failure before or around one tool attempt dispatch.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Handoff(InvocationAttemptHandoffError)
Handoff invariants changed before execution.
Registry(ToolProviderRegistryError)
No exact executable tool binding was installed.
Store(StoreError)
Store read/start mutation failed before tool I/O.
RunProvenanceMismatch
Trusted run provenance crossed the retained fence.
Clock(InvocationClockError)
Runtime clock observation failed.
BudgetProvider(InvocationBudgetProviderError)
Trusted admission/accounting provider failed.
BudgetInsufficient
Remaining capacity cannot admit the exact tool risk class.
Context(ToolContextError)
Finite tool context could not be constructed.
Input(ToolInputValidationError)
Durable input no longer fits the trusted context/descriptor snapshot.
StoppedBeforeStart
Cancellation or deadline won before the durable start.
Fields
reason: ToolStopReasonDeterministic stop reason.
EventPayload(InvocationEventPayloadError)
Standard public-safe journal payload could not be constructed.
JournalAppend
Worker journal append could not be constructed.
RecoveredInvocationMismatch
Idempotent start recovery loaded another durable intent.
InvocationAdvanced
Another physical attempt advanced the invocation from this handoff.
UnsupportedStoreOutcome
The store returned a future commit outcome unknown to this runtime.
Terminal(ToolTerminalCommitError)
Tool I/O completed but terminal persistence needs a no-dispatch retry.
Trait Implementations§
Source§impl Debug for ToolAttemptExecutionError
impl Debug for ToolAttemptExecutionError
Source§impl Display for ToolAttemptExecutionError
impl Display for ToolAttemptExecutionError
Source§impl Error for ToolAttemptExecutionError
impl Error for ToolAttemptExecutionError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<InvocationAttemptHandoffError> for ToolAttemptExecutionError
impl From<InvocationAttemptHandoffError> for ToolAttemptExecutionError
Source§fn from(source: InvocationAttemptHandoffError) -> Self
fn from(source: InvocationAttemptHandoffError) -> Self
Source§impl From<InvocationBudgetProviderError> for ToolAttemptExecutionError
impl From<InvocationBudgetProviderError> for ToolAttemptExecutionError
Source§fn from(source: InvocationBudgetProviderError) -> Self
fn from(source: InvocationBudgetProviderError) -> Self
Source§impl From<InvocationClockError> for ToolAttemptExecutionError
impl From<InvocationClockError> for ToolAttemptExecutionError
Source§fn from(source: InvocationClockError) -> Self
fn from(source: InvocationClockError) -> Self
Source§impl From<InvocationEventPayloadError> for ToolAttemptExecutionError
impl From<InvocationEventPayloadError> for ToolAttemptExecutionError
Source§fn from(source: InvocationEventPayloadError) -> Self
fn from(source: InvocationEventPayloadError) -> Self
Source§impl From<StoreError> for ToolAttemptExecutionError
impl From<StoreError> for ToolAttemptExecutionError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Source§impl From<ToolContextError> for ToolAttemptExecutionError
impl From<ToolContextError> for ToolAttemptExecutionError
Source§fn from(source: ToolContextError) -> Self
fn from(source: ToolContextError) -> Self
Source§impl From<ToolInputValidationError> for ToolAttemptExecutionError
impl From<ToolInputValidationError> for ToolAttemptExecutionError
Source§fn from(source: ToolInputValidationError) -> Self
fn from(source: ToolInputValidationError) -> Self
Source§impl From<ToolProviderRegistryError> for ToolAttemptExecutionError
impl From<ToolProviderRegistryError> for ToolAttemptExecutionError
Source§fn from(source: ToolProviderRegistryError) -> Self
fn from(source: ToolProviderRegistryError) -> Self
Source§impl From<ToolTerminalCommitError> for ToolAttemptExecutionError
impl From<ToolTerminalCommitError> for ToolAttemptExecutionError
Source§fn from(source: ToolTerminalCommitError) -> Self
fn from(source: ToolTerminalCommitError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for ToolAttemptExecutionError
impl !UnwindSafe for ToolAttemptExecutionError
impl Forget for ToolAttemptExecutionError
impl Freeze for ToolAttemptExecutionError
impl Move for ToolAttemptExecutionError
impl Send for ToolAttemptExecutionError
impl Sync for ToolAttemptExecutionError
impl Unpin for ToolAttemptExecutionError
impl UnsafeUnpin for ToolAttemptExecutionError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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