pub enum TaskOutcome {
Success,
RecoverableFailure {
reason: String,
},
SignificantFailure {
reason: String,
},
SevereFailure {
reason: String,
},
CatastrophicFailure {
reason: String,
},
}Expand description
Classification of task execution outcomes.
Variants§
Success
Task completed successfully.
RecoverableFailure
Task failed with recoverable error (Minor scar).
SignificantFailure
Task failed with significant error (Moderate scar).
SevereFailure
Task failed with severe error (Severe scar).
CatastrophicFailure
Task failed catastrophically (Fatal scar, terminates agent).
Implementations§
Source§impl TaskOutcome
impl TaskOutcome
Sourcepub fn severity(&self) -> Option<ScarSeverity>
pub fn severity(&self) -> Option<ScarSeverity>
Determine scar severity for this outcome.
Sourcepub fn failure_description(&self) -> Option<String>
pub fn failure_description(&self) -> Option<String>
Get failure description if outcome is failure.
Trait Implementations§
Source§impl Clone for TaskOutcome
impl Clone for TaskOutcome
Source§fn clone(&self) -> TaskOutcome
fn clone(&self) -> TaskOutcome
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 TaskOutcome
impl Debug for TaskOutcome
impl Eq for TaskOutcome
Source§impl PartialEq for TaskOutcome
impl PartialEq for TaskOutcome
impl StructuralPartialEq for TaskOutcome
Auto Trait Implementations§
impl Freeze for TaskOutcome
impl RefUnwindSafe for TaskOutcome
impl Send for TaskOutcome
impl Sync for TaskOutcome
impl Unpin for TaskOutcome
impl UnsafeUnpin for TaskOutcome
impl UnwindSafe for TaskOutcome
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.