[][src]Enum wain_exec::trap::TrapReason

pub enum TrapReason {
    UnknownImport {
        mod_name: String,
        name: String,
        kind: &'static str,
    },
    OutOfLimit {
        max: usize,
        idx: usize,
        kind: &'static str,
    },
    DataSegmentOutOfBuffer {
        segment_end: usize,
        buffer_size: usize,
    },
    ElemSegmentLargerThanTable {
        segment_end: usize,
        table_size: usize,
    },
    ReachUnreachable,
    IdxOutOfTable {
        idx: usize,
        table_size: usize,
    },
    UninitializedElem(usize),
    FuncSignatureMismatch {
        import: Option<(String, String)>,
        expected_params: Box<[ValType]>,
        expected_results: Box<[ValType]>,
        actual_params: Box<[ValType]>,
        actual_results: Box<[ValType]>,
    },
    LoadMemoryOutOfRange {
        max: usize,
        addr: usize,
        operation: &'static str,
        ty: &'static str,
    },
    ImportFuncCallFail {
        mod_name: String,
        name: String,
        msg: String,
    },
    WrongInvokeTarget {
        name: String,
        actual: Option<&'static str>,
    },
    InvokeInvalidArgs {
        name: String,
        args: Box<[Value]>,
        arg_types: Vec<ValType>,
    },
    RemZeroDivisor,
    DivByZeroOrOverflow,
}

Variants

UnknownImport

Fields of UnknownImport

mod_name: Stringname: Stringkind: &'static str
OutOfLimit

Fields of OutOfLimit

max: usizeidx: usizekind: &'static str
DataSegmentOutOfBuffer

Fields of DataSegmentOutOfBuffer

segment_end: usizebuffer_size: usize
ElemSegmentLargerThanTable

Fields of ElemSegmentLargerThanTable

segment_end: usizetable_size: usize
ReachUnreachable
IdxOutOfTable

Fields of IdxOutOfTable

idx: usizetable_size: usize
UninitializedElem(usize)
FuncSignatureMismatch

Fields of FuncSignatureMismatch

import: Option<(String, String)>expected_params: Box<[ValType]>expected_results: Box<[ValType]>actual_params: Box<[ValType]>actual_results: Box<[ValType]>
LoadMemoryOutOfRange

Fields of LoadMemoryOutOfRange

max: usizeaddr: usizeoperation: &'static strty: &'static str
ImportFuncCallFail

Fields of ImportFuncCallFail

mod_name: Stringname: Stringmsg: String
WrongInvokeTarget

Fields of WrongInvokeTarget

name: Stringactual: Option<&'static str>
InvokeInvalidArgs

Fields of InvokeInvalidArgs

name: Stringargs: Box<[Value]>arg_types: Vec<ValType>
RemZeroDivisor
DivByZeroOrOverflow

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.