Enum wasmtime::TrapCode [−][src]
#[non_exhaustive] pub enum TrapCode { StackOverflow, MemoryOutOfBounds, HeapMisaligned, TableOutOfBounds, IndirectCallToNull, BadSignature, IntegerOverflow, IntegerDivisionByZero, BadConversionToInteger, UnreachableCodeReached, Interrupt, }
Expand description
A trap code describing the reason for a trap.
All trap instructions have an explicit trap code.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
The current stack space was exhausted.
An out-of-bounds memory access.
A wasm atomic operation was presented with a not-naturally-aligned linear-memory address.
An out-of-bounds access to a table.
Indirect call to a null table entry.
Signature mismatch on indirect call.
An integer arithmetic operation caused an overflow.
An integer division by zero.
Failed float-to-int conversion.
Code that was supposed to have been unreachable was reached.
Execution has potentially run too long and may be interrupted.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TrapCode
impl UnwindSafe for TrapCode
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V