pub enum CorrectionResult {
Applied,
Failed(String),
Skipped,
}Expand description
Result of applying a correction.
Indicates whether the reflection system’s correction was successfully applied, failed, or was skipped. Produced after attempting to retry with the corrected parameters.
Variants§
Applied
Correction was applied successfully.
The retry with corrected parameters succeeded and the agent can continue processing normally.
Failed(String)
Correction failed.
The retry also failed. Contains a human-readable error message describing what went wrong with the corrected attempt.
Skipped
No correction was needed or possible.
The reflection system decided not to apply a correction (e.g.,
the error is transient or the correction type was
Escalate).
Trait Implementations§
Source§impl Clone for CorrectionResult
impl Clone for CorrectionResult
Source§fn clone(&self) -> CorrectionResult
fn clone(&self) -> CorrectionResult
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 moreAuto Trait Implementations§
impl Freeze for CorrectionResult
impl RefUnwindSafe for CorrectionResult
impl Send for CorrectionResult
impl Sync for CorrectionResult
impl Unpin for CorrectionResult
impl UnsafeUnpin for CorrectionResult
impl UnwindSafe for CorrectionResult
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