pub enum ErrorHandleResult {
EarlyReturn {
status: String,
},
Continue {
status: String,
error: String,
},
}Expand description
How run() should proceed after error handling.
Variants§
EarlyReturn
Task was rerouted — run() should record metrics then return early.
Continue
Normal failover applied (or task marked needs_review) — proceed to cleanup + metrics.
error is the current run’s attributed error message (e.g. “kimi timed out after 1801s”).
Callers should pass this as error_override to build_run_audit so that stale
last_error values from a previous agent’s run are not mis-attributed.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ErrorHandleResult
impl Freeze for ErrorHandleResult
impl Move for ErrorHandleResult
impl RefUnwindSafe for ErrorHandleResult
impl Send for ErrorHandleResultwhere
RawVecInner: Send,
impl Sync for ErrorHandleResultwhere
RawVecInner: Sync,
impl Unpin for ErrorHandleResult
impl UnsafeUnpin for ErrorHandleResult
impl UnwindSafe for ErrorHandleResultwhere
RawVecInner: UnwindSafe,
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> 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> 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