pub enum Outcome {
OutcomeUnspecified,
OutcomeOk,
OutcomeError,
OutcomeDeadlineExceeded,
}
Expand description
Enumeration of possible outcomes of the CodeExecutionTool
Variants§
OutcomeUnspecified
Unspecified status. This value should not be used.
OutcomeOk
Code execution completed successfully.
OutcomeError
Code execution finished but with a failure. stderr should contain the reason.
OutcomeDeadlineExceeded
Code execution ran for too long, and was cancelled. There may or may not be a partial output present.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Outcome
impl<'de> Deserialize<'de> for Outcome
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnwindSafe for Outcome
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