pub enum TerminalReason {
Completed,
UserCancel,
Budget,
WatchdogStall,
ProviderError {
kind: String,
},
ParentCancelled,
ConfirmationRejected,
InternalError,
Unknown,
}Expand description
Typed explanation for a durable task reaching a terminal state.
The tagged wire shape keeps variants stable while allowing structured
details such as the provider error kind. Unknown is the explicit
forward-compatibility sink for a newer producer’s reason; callers must still
name it in exhaustive matches rather than silently discarding it.
Variants§
Completed
The task completed successfully.
UserCancel
The caller explicitly cancelled this task tree.
Budget
A configured turn, token, cost, or retry budget was exhausted.
WatchdogStall
The subagent watchdog observed no work for the full stall budget.
ProviderError
The provider failed the request with a provider-specific category.
ParentCancelled
An ancestor was cancelled, so this descendant was cancelled with it.
ConfirmationRejected
A pending confirmation was rejected, revoked, or timed out.
InternalError
An internal execution or persistence error terminated the task.
Unknown
A reason introduced by a newer producer.
Trait Implementations§
Source§impl Clone for TerminalReason
impl Clone for TerminalReason
Source§fn clone(&self) -> TerminalReason
fn clone(&self) -> TerminalReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more