pub enum ErrorCode {
Show 19 variants
RuntimeUnavailable,
RuntimeInitializationFailure,
ExecutionFailure,
ExecutionTimeout,
ExecutionCancelled,
CaptureFailure,
RestoreFailure,
SerializationFailure,
InvalidSnapshot,
ProtocolViolation,
CapabilityViolation,
MigrationRejected,
SemanticLoss,
UnsupportedValue,
AdapterCrashed,
ResourceLimitExceeded,
Internal,
InvalidArgument,
Io,
}Expand description
Stable machine-readable error codes.
Variants§
Host runtime binary/engine is missing or not discoverable.
RuntimeInitializationFailure
Adapter failed during initialization.
ExecutionFailure
Guest program failed during execution.
ExecutionTimeout
Execution exceeded its deadline.
ExecutionCancelled
Execution was cancelled by the caller.
CaptureFailure
State capture failed.
RestoreFailure
State restore failed.
SerializationFailure
Serialization of PIR/snapshot/protocol failed.
InvalidSnapshot
Snapshot failed integrity or schema validation.
ProtocolViolation
Worker protocol violation or version mismatch.
CapabilityViolation
Requested capability is not available.
MigrationRejected
Migration was rejected by policy or analysis.
SemanticLoss
Semantic loss detected (often with MigrationRejected).
UnsupportedValue
Value cannot be represented in PIR or target runtime.
AdapterCrashed
Runtime worker process crashed.
ResourceLimitExceeded
Resource limit exceeded (memory, output, message size).
Internal
Generic internal error — should be rare.
InvalidArgument
Invalid user input / CLI arguments.
Io
I/O failure.
Trait Implementations§
impl Copy for ErrorCode
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
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>,
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.