pub enum Error {
Validation(String),
Instantiation(String),
Function(String),
Table(String),
Memory(String),
Global(String),
Value(String),
Trap(Trap),
Host(Box<dyn HostError>),
}
Expand description
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<dyn HostError>)
Custom embedder error.
Implementations
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more