Enum wasmer_vm::TrapCode [−][src]
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.
Memory data doesn't fit the memory size.
This only can happen during instantiation.
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.
Table Elements doesn't fit the table size.
This only can happen during instantiation.
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.
Execution has potentially run too long and may be interrupted. This trap is resumable.
An atomic memory access was attempted with an unaligned pointer.
A trap indicating that the runtime was unable to allocate sufficient memory.
Implementations
impl TrapCode
[src]
Trait Implementations
impl Clone for TrapCode
[src]
impl Copy for TrapCode
[src]
impl Debug for TrapCode
[src]
impl<'de> Deserialize<'de> for TrapCode
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for TrapCode
[src]
impl Eq for TrapCode
[src]
impl Error for TrapCode
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl FromStr for TrapCode
[src]
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for TrapCode
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<TrapCode> for TrapCode
[src]
fn eq(&self, other: &TrapCode) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for TrapCode
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for TrapCode
[src]
impl StructuralPartialEq for TrapCode
[src]
Auto Trait Implementations
impl RefUnwindSafe for TrapCode
[src]
impl Send for TrapCode
[src]
impl Sync for TrapCode
[src]
impl Unpin for TrapCode
[src]
impl UnwindSafe for TrapCode
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,