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
ApplySnapshotFailed
ErasingFailed(String)
Failure to erase the wasm memory.
Depending on the implementation might mean failure of allocating memory.
InvalidModule
CantDeserializeWasm
InvalidMemory
InvalidHeapPages
Instantiation(String)
Instantiation error.
Other(String)
Other error happenend.
Trait Implementations§
source§impl Error for WasmError
impl Error for WasmError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: 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§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.