Skip to main content

BenchOutcome

Enum BenchOutcome 

Source
pub enum BenchOutcome {
    Ran {
        outcome: ToolOutcome,
        checkpointed: Option<String>,
        wrote: Writes,
    },
    Refused {
        refusal: Box<AxError>,
    },
    Duplicate {
        outcome: ToolOutcome,
    },
}
Expand description

What the bench decided, alongside what the tool produced.

Variants§

§

Ran

The tool ran; this is its result. checkpointed carries the commit the wave was checkpointed against when the forecast suspected a discard, so the post-wave sweep knows what to restore from. wrote is the tool’s own account of what the call may have written, which the next checkpoint stages (crates/runtime/spec/Run/Checkpoint.lean §8-45).

Fields

§outcome: ToolOutcome
§checkpointed: Option<String>
§wrote: Writes
§

Refused

A gate refused, or asked. Either way the answer travels back as a tool_result, which keeps the turn alive and tells the model what it may not do or what the person has to do; a pending question carries E_APPROVAL_PENDING and its recovery sentence is the question.

Fields

§refusal: Box<AxError>
§

Duplicate

The call was already made, and this is what it answered. A replay is owed the first result: an error here would teach the model a call failed when it succeeded.

Fields

§outcome: ToolOutcome

Trait Implementations§

Source§

impl Debug for BenchOutcome

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.