Enum wasmi::Error
[−]
[src]
pub enum Error { Validation(String), Instantiation(String), Function(String), Table(String), Memory(String), Global(String), Value(String), Trap(Trap), Host(Box<HostError>), }
Internal interpreter error.
Variants
Validation(String)
Module validation error. Might occur only at load time.
Instantiation(String)
Error while instantiating a module. Might occur when provided with incorrect exports (i.e. linkage failure).
Function(String)
Function-level error.
Table(String)
Table-level error.
Memory(String)
Memory-level error.
Global(String)
Global-level error.
Value(String)
Value-level error.
Trap(Trap)
Trap.
Host(Box<HostError>)
Custom embedder error.
Methods
impl Error
[src]
pub fn as_host_error(&self) -> Option<&HostError>
[src]
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Into<String> for Error
[src]
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more
impl<U> From<U> for Error where
U: HostError + Sized,
[src]
U: HostError + Sized,