Enum near_vm_errors::WasmTrap [−][src]
pub enum WasmTrap {
Unreachable,
IncorrectCallIndirectSignature,
MemoryOutOfBounds,
CallIndirectOOB,
IllegalArithmetic,
MisalignedAtomicAccess,
IndirectCallToNull,
StackOverflow,
GenericTrap,
}
Expand description
A kind of a trap happened during execution of a binary
Variants
Unreachable
An unreachable
opcode was executed.
IncorrectCallIndirectSignature
Call indirect incorrect signature trap.
MemoryOutOfBounds
Memory out of bounds trap.
CallIndirectOOB
Call indirect out of bounds trap.
IllegalArithmetic
An arithmetic exception, e.g. divided by zero.
MisalignedAtomicAccess
Misaligned atomic access trap.
IndirectCallToNull
Indirect call to null.
StackOverflow
Stack overflow.
GenericTrap
Generic trap.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for WasmTrap
impl UnwindSafe for WasmTrap
Blanket Implementations
Mutably borrows from an owned value. Read more