#[repr(i32)]pub enum ExecError {
InvalidInstance = -1,
InvalidImage = -2,
OutOfGas = -3,
Trap = -4,
}Expand description
Errors that can be emitted when executing a new virtualization instance.
Variants§
InvalidInstance = -1
The supplied instance_id was invalid or the instance was destroyed.
InvalidImage = -2
The supplied code was invalid. Most likely caused by invalid entry points.
OutOfGas = -3
The execution ran out of gas before it could finish.
Trap = -4
The execution trapped before it could finish.
This can be caused by executing an unimp instruction.
Trait Implementations§
impl Eq for ExecError
impl StructuralPartialEq for ExecError
Auto Trait Implementations§
impl Freeze for ExecError
impl RefUnwindSafe for ExecError
impl Send for ExecError
impl Sync for ExecError
impl Unpin for ExecError
impl UnsafeUnpin for ExecError
impl UnwindSafe for ExecError
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