Enum wasmer_compiler::CompileError
source · [−]pub enum CompileError {
Wasm(WasmError),
Codegen(String),
Validate(String),
UnsupportedFeature(String),
UnsupportedTarget(String),
Resource(String),
}
Expand description
The WebAssembly.CompileError object indicates an error during WebAssembly decoding or validation.
This is based on the [Wasm Compile Error][compile-error] API.
Variants
Wasm(WasmError)
A Wasm translation error occured.
Codegen(String)
A compilation error occured.
Validate(String)
The module did not pass validation.
UnsupportedFeature(String)
The compiler doesn’t support a Wasm feature
UnsupportedTarget(String)
The compiler cannot compile for the given target. This can refer to the OS, the chipset or any other aspect of the target system.
Resource(String)
Insufficient resources available for execution.
Trait Implementations
sourceimpl Debug for CompileError
impl Debug for CompileError
sourceimpl Display for CompileError
impl Display for CompileError
sourceimpl Error for CompileError
impl Error for CompileError
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 CompileError
impl Send for CompileError
impl Sync for CompileError
impl Unpin for CompileError
impl UnwindSafe for CompileError
Blanket Implementations
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more