pub enum GoalPauseReason {
User,
Backoff,
NoProgress,
UsageLimit,
BudgetLimit,
Yielded,
Unrecognized,
}Expand description
Why an unfinished goal is paused. Shared by every durable host projection.
Variants§
User
Backoff
NoProgress
UsageLimit
BudgetLimit
Yielded
The model finished a stage and handed control back, rather than a reported blocker or a completion. It is not a judgement about the work, so the user’s next message resumes the goal (the same shape as a runtime stop, which is also resumable by writing to it).
Unrecognized
A reason a newer build wrote. Kept so an older binary can still read the durable record instead of failing the whole goal load on an unknown variant; nothing constructs it. The resume path treats it as “not a hand-back”, which is the conservative reading.
Implementations§
Trait Implementations§
Source§impl Clone for GoalPauseReason
impl Clone for GoalPauseReason
impl Copy for GoalPauseReason
Source§impl Debug for GoalPauseReason
impl Debug for GoalPauseReason
Source§impl<'de> Deserialize<'de> for GoalPauseReason
impl<'de> Deserialize<'de> for GoalPauseReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GoalPauseReason
Source§impl PartialEq for GoalPauseReason
impl PartialEq for GoalPauseReason
Source§impl Serialize for GoalPauseReason
impl Serialize for GoalPauseReason
impl StructuralPartialEq for GoalPauseReason
Auto Trait Implementations§
impl Freeze for GoalPauseReason
impl RefUnwindSafe for GoalPauseReason
impl Send for GoalPauseReason
impl Sync for GoalPauseReason
impl Unpin for GoalPauseReason
impl UnsafeUnpin for GoalPauseReason
impl UnwindSafe for GoalPauseReason
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.