pub enum RuntimeErrorCode {
Show 17 variants
MissingEffectScopeId,
EffectScopeTurnIdMismatch,
MissingProcessExecutionId,
DurableStoreRequired {
facet: DurableStoreFacet,
},
StoreCommitFailed,
PluginSessionManager,
PluginFinalizeTurn,
PluginCheckpoint,
PluginPrepareTurn,
ContextPrepareTurn,
ProtocolTurnExtension,
ProtocolBeforeLlmCall,
TurnStreamJoin,
EmptyAgentFrameRun,
DurableEffectLiveProtocolExtension,
DurableEffectLivePluginInput,
Other(String),
}Expand description
Stable runtime error code.
Codes serialize as the same snake_case strings exposed in traces and host errors, but callers should match this type instead of parsing display text.
Variants§
MissingEffectScopeId
EffectScopeTurnIdMismatch
MissingProcessExecutionId
A process (re-)execution was handed an empty/non-persisted process id.
Process execution identity is the persisted process_id; a retry that
cannot present that stable id has lost its idempotency anchor.
DurableStoreRequired
A durable execution path was wired against an ephemeral store for the named facet.
Fields
§
facet: DurableStoreFacetStoreCommitFailed
PluginSessionManager
PluginFinalizeTurn
PluginCheckpoint
PluginPrepareTurn
ContextPrepareTurn
ProtocolTurnExtension
ProtocolBeforeLlmCall
TurnStreamJoin
EmptyAgentFrameRun
DurableEffectLiveProtocolExtension
DurableEffectLivePluginInput
Other(String)
Implementations§
Trait Implementations§
Source§impl Clone for RuntimeErrorCode
impl Clone for RuntimeErrorCode
Source§fn clone(&self) -> RuntimeErrorCode
fn clone(&self) -> RuntimeErrorCode
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 moreSource§impl Debug for RuntimeErrorCode
impl Debug for RuntimeErrorCode
Source§impl<'de> Deserialize<'de> for RuntimeErrorCode
impl<'de> Deserialize<'de> for RuntimeErrorCode
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RuntimeErrorCode
impl Display for RuntimeErrorCode
impl Eq for RuntimeErrorCode
Source§impl From<&str> for RuntimeErrorCode
impl From<&str> for RuntimeErrorCode
Source§impl From<String> for RuntimeErrorCode
impl From<String> for RuntimeErrorCode
Source§impl Hash for RuntimeErrorCode
impl Hash for RuntimeErrorCode
Source§impl PartialEq for RuntimeErrorCode
impl PartialEq for RuntimeErrorCode
Source§fn eq(&self, other: &RuntimeErrorCode) -> bool
fn eq(&self, other: &RuntimeErrorCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RuntimeErrorCode
impl Serialize for RuntimeErrorCode
impl StructuralPartialEq for RuntimeErrorCode
Auto Trait Implementations§
impl Freeze for RuntimeErrorCode
impl RefUnwindSafe for RuntimeErrorCode
impl Send for RuntimeErrorCode
impl Sync for RuntimeErrorCode
impl Unpin for RuntimeErrorCode
impl UnsafeUnpin for RuntimeErrorCode
impl UnwindSafe for RuntimeErrorCode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more