pub enum FixStatus {
AllIssuesAddressed,
IssuesRemain,
NoIssuesFound,
Failed,
}Expand description
Fix status from agent output.
These values map to the <ralph-status> element in fix_result.xml.
Used to track whether fix work is complete or needs continuation.
§Continuation Semantics
AllIssuesAddressed: Complete, no continuation neededNoIssuesFound: Complete, no continuation neededIssuesRemain: Work incomplete, needs continuationFailed: Fix attempt failed, needs continuation with different approach
Variants§
AllIssuesAddressed
All issues have been addressed - no continuation needed.
IssuesRemain
Issues remain - needs continuation.
NoIssuesFound
No issues were found - nothing to fix.
Failed
Fix attempt failed - needs continuation with different approach.
This status indicates the fix attempt produced valid XML output but
the agent could not fix the issues (e.g., blocked by external factors,
needs different strategy). Triggers continuation like IssuesRemain.
Implementations§
Source§impl FixStatus
impl FixStatus
Sourcepub fn parse(s: &str) -> Option<Self>
pub fn parse(s: &str) -> Option<Self>
Parse a fix status string from XML.
This is intentionally not implementing std::str::FromStr because it returns
Option
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Returns true if the fix is complete (no more work needed).
Sourcepub fn needs_continuation(&self) -> bool
pub fn needs_continuation(&self) -> bool
Returns true if continuation is needed (incomplete work or failure).
Both IssuesRemain and Failed trigger continuation:
IssuesRemain: Some issues fixed, others remainFailed: Fix attempt failed, needs different approach
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FixStatus
impl<'de> Deserialize<'de> for FixStatus
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>,
impl Eq for FixStatus
impl StructuralPartialEq for FixStatus
Auto Trait Implementations§
impl Freeze for FixStatus
impl RefUnwindSafe for FixStatus
impl Send for FixStatus
impl Sync for FixStatus
impl Unpin for FixStatus
impl UnwindSafe for FixStatus
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
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
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more