pub struct FailureContext {
pub stage: String,
pub attempt: u32,
pub reason: String,
pub output: String,
}Expand description
The failure a backward edge jumped on, recovered from the run’s persisted evidence.
A re-entered agent must be told why it is running again or the loop cannot converge — it would reproduce the same work and fail the same check. The facts are read back from the stage log and the captured output rather than carried in memory, so a daemon that resumes mid-loop composes byte-for-byte the prompt the daemon that took the jump would have.
Fields§
§stage: String§attempt: u32§reason: String§output: StringThe tail of that execution’s captured output, already capped.
Trait Implementations§
Source§impl Clone for FailureContext
impl Clone for FailureContext
Source§fn clone(&self) -> FailureContext
fn clone(&self) -> FailureContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FailureContext
impl Debug for FailureContext
impl Eq for FailureContext
Source§impl PartialEq for FailureContext
impl PartialEq for FailureContext
impl StructuralPartialEq for FailureContext
Auto Trait Implementations§
impl Freeze for FailureContext
impl RefUnwindSafe for FailureContext
impl Send for FailureContext
impl Sync for FailureContext
impl Unpin for FailureContext
impl UnsafeUnpin for FailureContext
impl UnwindSafe for FailureContext
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,
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.