pub enum MemoryError {
EntryNotFound,
InvalidStaticPageCount,
}
Expand description
Memory error in WASM module.
Variants§
EntryNotFound
Memory entry not found in import section.
InvalidStaticPageCount
The WASM module has invalid count of static memory pages.
Trait Implementations§
Source§impl Debug for MemoryError
impl Debug for MemoryError
Source§impl Display for MemoryError
impl Display for MemoryError
Source§impl From<MemoryError> for CodeError
impl From<MemoryError> for CodeError
Source§fn from(original: MemoryError) -> CodeError
fn from(original: MemoryError) -> CodeError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MemoryError
impl RefUnwindSafe for MemoryError
impl Send for MemoryError
impl Sync for MemoryError
impl Unpin for MemoryError
impl UnwindSafe for MemoryError
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