pub enum MemorySetupError {
MemorySizeExceedsMaxPages {
memory_size: WasmPagesAmount,
max_pages: WasmPagesAmount,
},
InsufficientMemorySize {
memory_size: WasmPagesAmount,
static_pages: WasmPagesAmount,
},
StackEndOutOfStaticMemory {
stack_end: WasmPage,
static_pages: WasmPagesAmount,
},
AllocatedPageOutOfAllowedInterval {
page: WasmPage,
static_pages: WasmPagesAmount,
memory_size: WasmPagesAmount,
},
}
Expand description
Inconsistency in memory parameters provided for wasm execution.
Variants§
MemorySizeExceedsMaxPages
Memory size exceeds max pages
InsufficientMemorySize
Insufficient memory size
StackEndOutOfStaticMemory
Stack end is out of static memory
AllocatedPageOutOfAllowedInterval
Allocated page is out of allowed memory interval
Trait Implementations§
Source§impl Clone for MemorySetupError
impl Clone for MemorySetupError
Source§fn clone(&self) -> MemorySetupError
fn clone(&self) -> MemorySetupError
Returns a copy 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 MemorySetupError
impl Debug for MemorySetupError
Source§impl Display for MemorySetupError
impl Display for MemorySetupError
Source§impl PartialEq for MemorySetupError
impl PartialEq for MemorySetupError
impl Eq for MemorySetupError
impl StructuralPartialEq for MemorySetupError
Auto Trait Implementations§
impl Freeze for MemorySetupError
impl RefUnwindSafe for MemorySetupError
impl Send for MemorySetupError
impl Sync for MemorySetupError
impl Unpin for MemorySetupError
impl UnwindSafe for MemorySetupError
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