pub enum InstantiationError {
Link(LinkError),
CpuFeature(String),
Start(Trap),
}
Expand description
An error while instantiating a module.
This is not a common WebAssembly error, however
we need to differentiate from a LinkError
(an error
that happens while linking, on instantiation) and a
Trap that occurs when calling the WebAssembly module
start function.
Variants§
Link(LinkError)
A linking ocurred during instantiation.
CpuFeature(String)
The module was compiled with a CPU feature that is not available on the current host.
Start(Trap)
A runtime error occured while invoking the start function
Trait Implementations§
source§impl Debug for InstantiationError
impl Debug for InstantiationError
source§impl Display for InstantiationError
impl Display for InstantiationError
source§impl Error for InstantiationError
impl Error for InstantiationError
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 Freeze for InstantiationError
impl !RefUnwindSafe for InstantiationError
impl Send for InstantiationError
impl Sync for InstantiationError
impl Unpin for InstantiationError
impl !UnwindSafe for InstantiationError
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn 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.
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
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
§impl<T> Pointee for T
impl<T> Pointee for T
source§impl<T> Upcastable for T
impl<T> Upcastable for T
source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref