pub enum WasmDynamicError {
Show 19 variants
InvalidUrl(String),
NetworkOffline(String),
HttpStatus {
status: u16,
url: String,
},
Timeout {
url: String,
timeout_ms: u64,
},
Cancelled {
request_id: u64,
},
StaleResponse {
request_id: u64,
active_request_id: u64,
},
BinaryTooLarge {
actual: usize,
limit: usize,
},
InvalidWasmBinary(String),
ChecksumMismatch {
expected: u64,
actual: u64,
},
SignatureInvalid {
expected: String,
actual: String,
},
AbiMismatch {
expected: u32,
actual: u32,
},
MissingExport(String),
VersionRegression {
current: u64,
incoming: u64,
},
MemoryLimitExceeded {
requested: usize,
limit: usize,
},
MemoryOutOfBounds {
addr: u32,
len: u32,
memory_size: usize,
},
OutOfFuel {
limit: u64,
},
ExecutionTrap(String),
InvalidUiPayload(String),
NoRollbackSnapshot,
}Expand description
Comprehensive typed error taxonomy covering all network, integrity, ABI, and sandbox failure cases.
Variants§
InvalidUrl(String)
Download URL was empty, malformed, or used an unsupported scheme.
NetworkOffline(String)
Network transport is offline and no eligible verified cache entry exists.
HttpStatus
Remote server returned a non-2xx HTTP status code.
Timeout
Download exceeded configured timeout_ms.
Cancelled
Request was explicitly cancelled before completion.
StaleResponse
Response belonged to a superseded request generation and was discarded safely.
Fields
BinaryTooLarge
Downloaded binary exceeded max_binary_bytes.
InvalidWasmBinary(String)
Binary failed WebAssembly magic/version/section decoding.
ChecksumMismatch
Computed FNV-1a checksum did not match expected_checksum.
Fields
SignatureInvalid
Cryptographic/HMAC signature tag verification failed.
AbiMismatch
Module reported an incompatible euv host ABI version.
Fields
MissingExport(String)
Required exported function (e.g. euv_render) was absent from .wasm module.
VersionRegression
Incoming version was lower than or equal to the active version without allow_downgrade.
MemoryLimitExceeded
Module requested linear memory exceeding max_memory_bytes.
MemoryOutOfBounds
WASM instruction attempted an out-of-bounds linear memory read or write.
Fields
OutOfFuel
Sandbox terminated runaway/infinite-loop execution upon hitting max_fuel.
ExecutionTrap(String)
WASM execution trapped (unreachable, divide-by-zero, or stack underflow/overflow).
InvalidUiPayload(String)
WASM emitted an invalid or unparseable native UI specification payload.
NoRollbackSnapshot
Rollback requested when no prior verified snapshot exists.
Trait Implementations§
Source§impl Clone for WasmDynamicError
impl Clone for WasmDynamicError
Source§impl Debug for WasmDynamicError
impl Debug for WasmDynamicError
Source§impl Display for WasmDynamicError
Human-readable diagnostic formatting for WasmDynamicError.
impl Display for WasmDynamicError
Human-readable diagnostic formatting for WasmDynamicError.
impl Eq for WasmDynamicError
Source§impl Error for WasmDynamicError
Standard Error marker implementation for WasmDynamicError.
impl Error for WasmDynamicError
Standard Error marker implementation for WasmDynamicError.
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()