pub enum TaskEndVariant {
Success,
Unable,
Failed,
Unknown,
}Expand description
How a task finished. Wire-compatible with akribes_types::event::TaskEndVariant
— a plain snake_case string on the wire ("success", "unable", …).
The #[serde(other)] arm is the forward-compat contract at the SDK
boundary: future akribes-core arms (e.g. Partial from #205) surface as
Unknown until the SDK is updated, and the stream
keeps flowing.
Variants§
Success
Task produced a well-typed value that passed the full validation
pipeline. Wire default when variant is absent (pre-#206).
Unable
Task had a T | Unable return type and the agent emitted a canonical
{"unable": ...} envelope. The owning TaskEnd.value carries the
full Value::Unable payload.
Failed
Task ended with a dispatch-level failure (provider error, sandbox
timeout, OOM kill, exhausted validation budget). The owning
TaskEnd.value is a Value::FatalError. Surfaced from the
runtime dispatch path. (PR #672.)
Unknown
Catch-all for discriminants the SDK doesn’t recognize (a variant
added by a newer akribes-core). The raw TaskEnd.value is still
available — consumers that need strict handling should read the raw
akribes_types::event::EngineEvent::TaskEnd directly.
Trait Implementations§
Source§impl Clone for TaskEndVariant
impl Clone for TaskEndVariant
Source§fn clone(&self) -> TaskEndVariant
fn clone(&self) -> TaskEndVariant
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TaskEndVariant
impl Debug for TaskEndVariant
Source§impl Default for TaskEndVariant
impl Default for TaskEndVariant
Source§fn default() -> TaskEndVariant
fn default() -> TaskEndVariant
Source§impl<'de> Deserialize<'de> for TaskEndVariant
impl<'de> Deserialize<'de> for TaskEndVariant
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>,
Source§impl From<TaskEndVariant> for TaskEndVariant
impl From<TaskEndVariant> for TaskEndVariant
Source§fn from(v: TaskEndVariant) -> Self
fn from(v: TaskEndVariant) -> Self
Source§impl PartialEq for TaskEndVariant
impl PartialEq for TaskEndVariant
Source§fn eq(&self, other: &TaskEndVariant) -> bool
fn eq(&self, other: &TaskEndVariant) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for TaskEndVariant
impl Serialize for TaskEndVariant
impl Copy for TaskEndVariant
impl Eq for TaskEndVariant
impl StructuralPartialEq for TaskEndVariant
Auto Trait Implementations§
impl Freeze for TaskEndVariant
impl RefUnwindSafe for TaskEndVariant
impl Send for TaskEndVariant
impl Sync for TaskEndVariant
impl Unpin for TaskEndVariant
impl UnsafeUnpin for TaskEndVariant
impl UnwindSafe for TaskEndVariant
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.