Enum sc_executor_common::error::WasmError
source · [−]pub enum WasmError {
CodeNotFound,
ApplySnapshotFailed,
ErasingFailed(String),
InvalidModule,
CantDeserializeWasm,
InvalidMemory,
InvalidHeapPages,
Instantiation(String),
Other(String),
}
Expand description
Type for errors occurring during Wasm runtime construction.
Variants
CodeNotFound
Code could not be read from the state.
ApplySnapshotFailed
Failure to reinitialize runtime instance from snapshot.
ErasingFailed(String)
Failure to erase the wasm memory.
Depending on the implementation might mean failure of allocating memory.
InvalidModule
Wasm code failed validation.
CantDeserializeWasm
Wasm code could not be deserialized.
InvalidMemory
The module does not export a linear memory named memory
.
InvalidHeapPages
The number of heap pages requested is disallowed by the module.
Instantiation(String)
Instantiation error.
Other(String)
Other error happenend.
Trait Implementations
sourceimpl Error for WasmError
impl Error for WasmError
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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for WasmError
impl Send for WasmError
impl Sync for WasmError
impl Unpin for WasmError
impl UnwindSafe for WasmError
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
sourceimpl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
sourcepub fn unchecked_into(self) -> T
pub fn unchecked_into(self) -> T
The counterpart to unchecked_from
.