Enum wasmer::InstantiationError
source · pub enum InstantiationError {
Link(LinkError),
Start(RuntimeError),
CpuFeature(String),
DifferentStores,
DifferentArchOS,
}
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), a
Trap that occurs when calling the WebAssembly module
start function, and an error when initializing the user’s
host environments.
Variants§
Link(LinkError)
A linking ocurred during instantiation.
Start(RuntimeError)
A runtime error occured while invoking the start function
CpuFeature(String)
The module was compiled with a CPU feature that is not available on the current host.
DifferentStores
Import from a different Store
.
This error occurs when an import from a different store is used.
DifferentArchOS
Import from a different Store. This error occurs when an import from a different store is used.
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()
source§impl From<InstantiationError> for InstantiationError
impl From<InstantiationError> for InstantiationError
source§fn from(other: InstantiationError) -> Self
fn from(other: InstantiationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
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>
§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>
Gets the layout of the type.