#[repr(u8)]pub enum TerminationReason {
Show 15 variants
UnhandledError = 0,
InvocationError = 1,
ExecutionError = 2,
CheckpointFailed = 3,
NonDeterministicExecution = 4,
StepInterrupted = 5,
CallbackError = 6,
SerializationError = 7,
SizeLimitExceeded = 8,
OperationTerminated = 9,
RetryScheduled = 10,
WaitScheduled = 11,
CallbackPending = 12,
ContextValidationError = 13,
LambdaTimeoutApproaching = 14,
}Expand description
Reason for execution termination.
This enum uses #[repr(u8)] for compact memory representation (1 byte).
Explicit discriminant values ensure stability across versions.
Variants§
UnhandledError = 0
Unhandled error in user code
InvocationError = 1
Error during Lambda invocation
ExecutionError = 2
Explicit execution error
CheckpointFailed = 3
Checkpoint operation failed
NonDeterministicExecution = 4
Non-deterministic execution detected
StepInterrupted = 5
Step was interrupted
CallbackError = 6
Callback operation failed
SerializationError = 7
Serialization/deserialization failed
SizeLimitExceeded = 8
Size limit exceeded (payload, response, or history)
OperationTerminated = 9
Operation was explicitly terminated
RetryScheduled = 10
A retry has been scheduled; execution will resume
WaitScheduled = 11
A wait operation has been scheduled
CallbackPending = 12
A callback is pending external completion
ContextValidationError = 13
Context validation failed
LambdaTimeoutApproaching = 14
Lambda timeout approaching — graceful shutdown
Trait Implementations§
Source§impl Clone for TerminationReason
impl Clone for TerminationReason
Source§fn clone(&self) -> TerminationReason
fn clone(&self) -> TerminationReason
Returns a duplicate of the value. Read more
1.0.0 · 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 TerminationReason
impl Debug for TerminationReason
Source§impl Default for TerminationReason
impl Default for TerminationReason
Source§fn default() -> TerminationReason
fn default() -> TerminationReason
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TerminationReason
impl<'de> Deserialize<'de> for TerminationReason
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 PartialEq for TerminationReason
impl PartialEq for TerminationReason
Source§impl Serialize for TerminationReason
impl Serialize for TerminationReason
impl Copy for TerminationReason
impl Eq for TerminationReason
impl StructuralPartialEq for TerminationReason
Auto Trait Implementations§
impl Freeze for TerminationReason
impl RefUnwindSafe for TerminationReason
impl Send for TerminationReason
impl Sync for TerminationReason
impl Unpin for TerminationReason
impl UnsafeUnpin for TerminationReason
impl UnwindSafe for TerminationReason
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,
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
Compare self to
key and return true if they are equal.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 moreSource§impl<B> IntoFunctionResponse<B, Body> for Bwhere
B: Serialize,
impl<B> IntoFunctionResponse<B, Body> for Bwhere
B: Serialize,
Source§fn into_response(self) -> FunctionResponse<B, Body>
fn into_response(self) -> FunctionResponse<B, Body>
Convert the type into a FunctionResponse.
Creates a shared type from an unshared type.