Enum wasmer_vm::TrapCode [−][src]
#[repr(u32)] pub enum TrapCode { StackOverflow, HeapAccessOutOfBounds, HeapMisaligned, TableAccessOutOfBounds, OutOfBounds, IndirectCallToNull, BadSignature, IntegerOverflow, IntegerDivisionByZero, BadConversionToInteger, UnreachableCodeReached, UnalignedAtomic, }
Expand description
A trap code describing the reason for a trap.
All trap instructions have an explicit trap code.
Variants
The current stack space was exhausted.
On some platforms, a stack overflow may also be indicated by a segmentation fault from the stack guard page.
A heap_addr
instruction detected an out-of-bounds error.
Note that not all out-of-bounds heap accesses are reported this way; some are detected by a segmentation fault on the heap unmapped or offset-guard pages.
A heap_addr
instruction was misaligned.
A table_addr
instruction detected an out-of-bounds error.
Other bounds checking error.
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.
An atomic memory access was attempted with an unaligned pointer.
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Returns the size of the referenced value in bytes. Read more
Auto Trait Implementations
impl RefUnwindSafe for TrapCode
impl UnwindSafe for TrapCode
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.