pub enum RuntimeErrorKind {
NotConfigured,
Timeout,
SandboxUnavailable,
OomKilled,
Cancelled,
Internal,
Unknown,
}Expand description
Typed mirror of the engine’s RuntimeError enum for the
kind field on RuntimeErrorPayload. Use RuntimeErrorKind::from_wire
to dispatch; unknown strings surface as RuntimeErrorKind::Unknown so
the SDK stays forward-compatible.
Variants§
NotConfigured
AKRIBES_SANDBOX_URL / _TOKEN not set on the server.
Timeout
Execution exceeded the runtime block’s timeout_secs.
The sandbox service was unreachable / dropped the connection.
OomKilled
Container exceeded its memory_mb cap (OOM killer fired).
Cancelled
User (or engine cancellation token) terminated the call before
it produced an exit code. Terminal — retry policies should
NOT auto-retry on this kind; treat it the same as a Skip
(propagate the cancel upward).
Internal
Catch-all for other failures (sandbox 5xx, unknown wire kind, …).
Unknown
Forward-compat: the engine emitted a kind string this SDK
release does not know about. Read the raw wire kind from the
surrounding RuntimeErrorPayload::kind field.
Implementations§
Source§impl RuntimeErrorKind
impl RuntimeErrorKind
Sourcepub fn from_wire(s: &str) -> Self
pub fn from_wire(s: &str) -> Self
Map the wire string to a typed variant. Recognises the six
canonical engine kinds; anything else returns Self::Unknown.
Sourcepub fn to_wire(self) -> Option<&'static str>
pub fn to_wire(self) -> Option<&'static str>
Emit the stable wire-form string for this kind, mirroring the
engine’s as_wire_str. Returns None for Self::Unknown
because a forward-compat unknown tag has no canonical wire form
to round-trip through.
Trait Implementations§
Source§impl Clone for RuntimeErrorKind
impl Clone for RuntimeErrorKind
Source§fn clone(&self) -> RuntimeErrorKind
fn clone(&self) -> RuntimeErrorKind
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 RuntimeErrorKind
impl Debug for RuntimeErrorKind
Source§impl PartialEq for RuntimeErrorKind
impl PartialEq for RuntimeErrorKind
Source§fn eq(&self, other: &RuntimeErrorKind) -> bool
fn eq(&self, other: &RuntimeErrorKind) -> bool
self and other values to be equal, and is used by ==.impl Copy for RuntimeErrorKind
impl Eq for RuntimeErrorKind
impl StructuralPartialEq for RuntimeErrorKind
Auto Trait Implementations§
impl Freeze for RuntimeErrorKind
impl RefUnwindSafe for RuntimeErrorKind
impl Send for RuntimeErrorKind
impl Sync for RuntimeErrorKind
impl Unpin for RuntimeErrorKind
impl UnsafeUnpin for RuntimeErrorKind
impl UnwindSafe for RuntimeErrorKind
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.