#[non_exhaustive]pub enum InstantiateError {
DefNotFound,
ImportKindMismatch,
FuncTypeMismatch,
GlobalTypeMismatch,
TableTypeMismatch,
MemTypeMismatch,
}Expand description
An error that can occur when instantiating a module.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DefNotFound
ImportKindMismatch
FuncTypeMismatch
GlobalTypeMismatch
TableTypeMismatch
MemTypeMismatch
Trait Implementations§
Source§impl Clone for InstantiateError
impl Clone for InstantiateError
Source§fn clone(&self) -> InstantiateError
fn clone(&self) -> InstantiateError
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 InstantiateError
impl Debug for InstantiateError
Source§impl Display for InstantiateError
impl Display for InstantiateError
Source§impl Error for InstantiateError
impl Error for InstantiateError
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<InstantiateError> for Error
impl From<InstantiateError> for Error
Source§fn from(error: InstantiateError) -> Self
fn from(error: InstantiateError) -> Self
Converts to this type from the input type.
impl Copy for InstantiateError
Auto Trait Implementations§
impl Freeze for InstantiateError
impl RefUnwindSafe for InstantiateError
impl Send for InstantiateError
impl Sync for InstantiateError
impl Unpin for InstantiateError
impl UnwindSafe for InstantiateError
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