pub struct ThreadGoal {Show 14 fields
pub thread_id: String,
pub goal_id: String,
pub objective: String,
pub status: ThreadGoalStatus,
pub token_budget: Option<i64>,
pub tokens_used: i64,
pub time_used_seconds: i64,
pub continuation_count: i64,
pub created_at: i64,
pub updated_at: i64,
pub last_gap_fingerprint: Option<String>,
pub repeated_gap_count: u32,
pub last_gap_pass: Option<u32>,
pub pause_reason: Option<GoalPauseReason>,
}Fields§
§thread_id: String§goal_id: String§objective: String§status: ThreadGoalStatus§token_budget: Option<i64>§tokens_used: i64§time_used_seconds: i64§continuation_count: i64§created_at: i64§updated_at: i64§last_gap_fingerprint: Option<String>§repeated_gap_count: u32§last_gap_pass: Option<u32>§pause_reason: Option<GoalPauseReason>Implementations§
Source§impl ThreadGoal
impl ThreadGoal
pub fn validate_stall_state(&self) -> Result<(), &'static str>
Sourcepub fn normalize_restored_stall_state(&mut self) -> bool
pub fn normalize_restored_stall_state(&mut self) -> bool
Restore a durably impossible record as paused. The engine pauses NoProgress in the same locked mutation that fills the stall window, so a persisted record that is still Active at the ceiling is corrupt (e.g. a crash between the counter write and the pause). Returns true when the record was healed.
Trait Implementations§
Source§impl Clone for ThreadGoal
impl Clone for ThreadGoal
Source§impl Debug for ThreadGoal
impl Debug for ThreadGoal
Source§impl<'de> Deserialize<'de> for ThreadGoal
impl<'de> Deserialize<'de> for ThreadGoal
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 ThreadGoal
Source§impl PartialEq for ThreadGoal
impl PartialEq for ThreadGoal
Source§impl Serialize for ThreadGoal
impl Serialize for ThreadGoal
impl StructuralPartialEq for ThreadGoal
Auto Trait Implementations§
impl Freeze for ThreadGoal
impl RefUnwindSafe for ThreadGoal
impl Send for ThreadGoal
impl Sync for ThreadGoal
impl Unpin for ThreadGoal
impl UnsafeUnpin for ThreadGoal
impl UnwindSafe for ThreadGoal
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.