pub enum EngineError {
CompilationFailed {
module: String,
reason: String,
},
InstantiationFailed {
module: String,
reason: String,
},
}Expand description
Engine errors for Wasm compilation and instantiation.
Error code range: E0800–E0899.
Variants§
CompilationFailed
A WebAssembly module failed to compile.
InstantiationFailed
A WebAssembly module failed to instantiate.
Trait Implementations§
Source§impl Clone for EngineError
impl Clone for EngineError
Source§fn clone(&self) -> EngineError
fn clone(&self) -> EngineError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
Source§impl Error for EngineError
impl Error for EngineError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl From<EngineError> for TorvynError
impl From<EngineError> for TorvynError
Source§fn from(e: EngineError) -> Self
fn from(e: EngineError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EngineError
impl PartialEq for EngineError
impl Eq for EngineError
impl StructuralPartialEq for EngineError
Auto Trait Implementations§
impl Freeze for EngineError
impl RefUnwindSafe for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnwindSafe for EngineError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more