[][src]Enum wasmdbg::vm::Trap

pub enum Trap {
    ReachedUnreachable,
    UnknownInstruction(Instruction),
    PopFromEmptyStack,
    NoFunctionFrame,
    ExecutionFinished,
    TypeError {
        expected: ValueType,
        found: ValueType,
    },
    DivisionByZero,
    SignedIntegerOverflow,
    InvalidConversionToInt,
    NoTable,
    IndirectCalleeAbsent,
    IndirectCallTypeMismatch,
    NoFunctionWithIndex(u32),
    NoStartFunction,
    BreakpointReached(u32),
    WatchpointReached(u32),
    InvalidBranchIndex,
    MemoryAccessOutOfRange(u32),
    UnsupportedCallToImportedFunction(u32),
    ValueStackOverflow,
    LabelStackOverflow,
    FunctionStackOverflow,
    WasiExit(u32),
}

Variants

ReachedUnreachable
UnknownInstruction(Instruction)
PopFromEmptyStack
NoFunctionFrame
ExecutionFinished
TypeError

Fields of TypeError

expected: ValueTypefound: ValueType
DivisionByZero
SignedIntegerOverflow
InvalidConversionToInt
NoTable
IndirectCalleeAbsent
IndirectCallTypeMismatch
NoFunctionWithIndex(u32)
NoStartFunction
BreakpointReached(u32)
WatchpointReached(u32)
InvalidBranchIndex
MemoryAccessOutOfRange(u32)
UnsupportedCallToImportedFunction(u32)
ValueStackOverflow
LabelStackOverflow
FunctionStackOverflow
WasiExit(u32)

Trait Implementations

impl Clone for Trap[src]

impl Display for Trap[src]

impl Debug for Trap[src]

impl Fail for Trap[src]

Auto Trait Implementations

impl Send for Trap

impl Sync for Trap

impl Unpin for Trap

impl UnwindSafe for Trap

impl RefUnwindSafe for Trap

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]