Enum wasmtime_environ::ir::TrapCode [−][src]
pub enum TrapCode {
StackOverflow,
HeapOutOfBounds,
HeapMisaligned,
TableOutOfBounds,
IndirectCallToNull,
BadSignature,
IntegerOverflow,
IntegerDivisionByZero,
BadConversionToInteger,
UnreachableCodeReached,
Interrupt,
User(u16),
}A trap code describing the reason for a trap.
All trap instructions have an explicit trap code.
Variants
The current stack space was exhausted.
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 wasm atomic operation was presented with a not-naturally-aligned linear-memory address.
A table_addr instruction detected an out-of-bounds 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.
Execution has potentially run too long and may be interrupted. This trap is resumable.
User(u16)A user-defined trap code.
Trait Implementations
impl<'de> Deserialize<'de> for TrapCode[src]
impl<'de> Deserialize<'de> for TrapCode[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<TrapCode, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, [src]
__deserializer: __D
) -> Result<TrapCode, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Serialize for TrapCode[src]
impl Serialize for TrapCode[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, [src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Copy for TrapCode[src]
impl Eq for TrapCode[src]
impl StructuralEq for TrapCode[src]
impl StructuralPartialEq for TrapCode[src]
Auto Trait Implementations
impl RefUnwindSafe for TrapCode
impl Send for TrapCode
impl Sync for TrapCode
impl Unpin for TrapCode
impl UnwindSafe for TrapCode
Blanket Implementations
impl<T> CallHasher for T where
T: Hash, [src]
impl<T> CallHasher for T where
T: Hash, [src]impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,