#[non_exhaustive]pub enum ModelAttemptExecutionError {
Show 15 variants
Handoff(InvocationAttemptHandoffError),
Registry(ModelProviderRegistryError),
Store(StoreError),
RunProvenanceMismatch,
Clock(InvocationClockError),
BudgetProvider(InvocationBudgetProviderError),
BudgetInsufficient,
Context(ModelContextError),
StoppedBeforeStart {
reason: ModelStopReason,
},
EventPayload(InvocationEventPayloadError),
JournalAppend,
RecoveredInvocationMismatch,
InvocationAdvanced,
UnsupportedStoreOutcome,
Terminal(ModelTerminalCommitError),
}Expand description
Failure before or around one model attempt dispatch.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Handoff(InvocationAttemptHandoffError)
Handoff invariants changed before execution.
Registry(ModelProviderRegistryError)
No exact provider binding was installed.
Store(StoreError)
Store read/start mutation failed before provider 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 request snapshot.
Context(ModelContextError)
Finite model context could not be constructed.
StoppedBeforeStart
Cancellation or deadline won before the durable start.
Fields
reason: ModelStopReasonDeterministic 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(ModelTerminalCommitError)
Provider I/O completed but terminal persistence needs a no-dispatch retry.
Trait Implementations§
Source§impl Debug for ModelAttemptExecutionError
impl Debug for ModelAttemptExecutionError
Source§impl Display for ModelAttemptExecutionError
impl Display for ModelAttemptExecutionError
Source§impl Error for ModelAttemptExecutionError
impl Error for ModelAttemptExecutionError
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 ModelAttemptExecutionError
impl From<InvocationAttemptHandoffError> for ModelAttemptExecutionError
Source§fn from(source: InvocationAttemptHandoffError) -> Self
fn from(source: InvocationAttemptHandoffError) -> Self
Source§impl From<InvocationBudgetProviderError> for ModelAttemptExecutionError
impl From<InvocationBudgetProviderError> for ModelAttemptExecutionError
Source§fn from(source: InvocationBudgetProviderError) -> Self
fn from(source: InvocationBudgetProviderError) -> Self
Source§impl From<InvocationClockError> for ModelAttemptExecutionError
impl From<InvocationClockError> for ModelAttemptExecutionError
Source§fn from(source: InvocationClockError) -> Self
fn from(source: InvocationClockError) -> Self
Source§impl From<InvocationEventPayloadError> for ModelAttemptExecutionError
impl From<InvocationEventPayloadError> for ModelAttemptExecutionError
Source§fn from(source: InvocationEventPayloadError) -> Self
fn from(source: InvocationEventPayloadError) -> Self
Source§impl From<ModelContextError> for ModelAttemptExecutionError
impl From<ModelContextError> for ModelAttemptExecutionError
Source§fn from(source: ModelContextError) -> Self
fn from(source: ModelContextError) -> Self
Source§impl From<ModelProviderRegistryError> for ModelAttemptExecutionError
impl From<ModelProviderRegistryError> for ModelAttemptExecutionError
Source§fn from(source: ModelProviderRegistryError) -> Self
fn from(source: ModelProviderRegistryError) -> Self
Source§impl From<ModelTerminalCommitError> for ModelAttemptExecutionError
impl From<ModelTerminalCommitError> for ModelAttemptExecutionError
Source§fn from(source: ModelTerminalCommitError) -> Self
fn from(source: ModelTerminalCommitError) -> Self
Source§impl From<StoreError> for ModelAttemptExecutionError
impl From<StoreError> for ModelAttemptExecutionError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for ModelAttemptExecutionError
impl !UnwindSafe for ModelAttemptExecutionError
impl Forget for ModelAttemptExecutionError
impl Freeze for ModelAttemptExecutionError
impl Move for ModelAttemptExecutionError
impl Send for ModelAttemptExecutionError
impl Sync for ModelAttemptExecutionError
impl Unpin for ModelAttemptExecutionError
impl UnsafeUnpin for ModelAttemptExecutionError
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