pub enum AllocError {
ProgramAllocOutOfBounds,
InvalidFree(WasmPage),
InvalidFreeRange(WasmPage, WasmPage),
GasCharge(ChargeError),
}
Expand description
Allocation error
Variants§
ProgramAllocOutOfBounds
The error occurs when a program tries to allocate more memory than allowed.
InvalidFree(WasmPage)
The error occurs in attempt to free-up a memory page from static area or outside additionally allocated for this program.
InvalidFreeRange(WasmPage, WasmPage)
Invalid range for free_range
GasCharge(ChargeError)
Gas charge error
Trait Implementations§
Source§impl Clone for AllocError
impl Clone for AllocError
Source§fn clone(&self) -> AllocError
fn clone(&self) -> AllocError
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 AllocError
impl Debug for AllocError
Source§impl Display for AllocError
impl Display for AllocError
Source§impl From<ChargeError> for AllocError
impl From<ChargeError> for AllocError
Source§fn from(original: ChargeError) -> AllocError
fn from(original: ChargeError) -> AllocError
Converts to this type from the input type.
Source§impl PartialEq for AllocError
impl PartialEq for AllocError
impl Eq for AllocError
impl StructuralPartialEq for AllocError
Auto Trait Implementations§
impl Freeze for AllocError
impl RefUnwindSafe for AllocError
impl Send for AllocError
impl Sync for AllocError
impl Unpin for AllocError
impl UnwindSafe for AllocError
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