pub enum ToolOutcomeStatus {
Succeeded,
CompletedWithNegativeResult,
FailedRetryable,
FailedPermanent,
Blocked,
Backgrounded,
}Expand description
Structured outcome of a tool invocation. This separates transport/execution success from the domain result: a test runner can execute correctly while reporting failing tests, and a lookup can complete with no matches.
Variants§
Implementations§
Source§impl ToolOutcomeStatus
impl ToolOutcomeStatus
Sourcepub const fn from_process_exit_code(code: i32) -> ToolOutcomeStatus
pub const fn from_process_exit_code(code: i32) -> ToolOutcomeStatus
Normalize the execution backend’s process status convention. Unix commands that exit normally produce a nonnegative code; the backend uses a negative sentinel when no normal exit status exists (for example, a sandbox kill). Such termination is not a completed negative predicate observation.
pub const fn as_str(self) -> &'static str
pub fn satisfies_requested_condition(self) -> bool
pub fn is_failure(self) -> bool
Trait Implementations§
Source§impl Clone for ToolOutcomeStatus
impl Clone for ToolOutcomeStatus
Source§fn clone(&self) -> ToolOutcomeStatus
fn clone(&self) -> ToolOutcomeStatus
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 moreimpl Copy for ToolOutcomeStatus
Source§impl Debug for ToolOutcomeStatus
impl Debug for ToolOutcomeStatus
Source§impl<'de> Deserialize<'de> for ToolOutcomeStatus
impl<'de> Deserialize<'de> for ToolOutcomeStatus
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolOutcomeStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolOutcomeStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ToolOutcomeStatus
Source§impl PartialEq for ToolOutcomeStatus
impl PartialEq for ToolOutcomeStatus
Source§impl Serialize for ToolOutcomeStatus
impl Serialize for ToolOutcomeStatus
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ToolOutcomeStatus
Auto Trait Implementations§
impl Forget for ToolOutcomeStatus
impl Freeze for ToolOutcomeStatus
impl Move for ToolOutcomeStatus
impl RefUnwindSafe for ToolOutcomeStatus
impl Send for ToolOutcomeStatus
impl Sync for ToolOutcomeStatus
impl Unpin for ToolOutcomeStatus
impl UnsafeUnpin for ToolOutcomeStatus
impl UnwindSafe for ToolOutcomeStatus
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
Converts
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> ⓘ
Converts
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