#[non_exhaustive]pub enum TurnFailureKind {
RolloutBudgetExhausted,
Other,
}Expand description
A terminal turn.failed classification from the Codex JSONL stream.
Codex does not currently emit a machine-readable error code, so the one typed class here is pinned to the stable message captured from 0.145.0. Unknown failures remain distinguishable rather than being forced into the budget class.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RolloutBudgetExhausted
Codex stopped after exhausting its native shared rollout budget.
Other
A terminal failure not classified by this wrapper.
Trait Implementations§
Source§impl Clone for TurnFailureKind
impl Clone for TurnFailureKind
Source§fn clone(&self) -> TurnFailureKind
fn clone(&self) -> TurnFailureKind
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 TurnFailureKind
Source§impl Debug for TurnFailureKind
impl Debug for TurnFailureKind
impl Eq for TurnFailureKind
Source§impl PartialEq for TurnFailureKind
impl PartialEq for TurnFailureKind
impl StructuralPartialEq for TurnFailureKind
Auto Trait Implementations§
impl Freeze for TurnFailureKind
impl RefUnwindSafe for TurnFailureKind
impl Send for TurnFailureKind
impl Sync for TurnFailureKind
impl Unpin for TurnFailureKind
impl UnsafeUnpin for TurnFailureKind
impl UnwindSafe for TurnFailureKind
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