Enum move_core_types::vm_status::VMStatus [−][src]
pub enum VMStatus {
Executed,
Error(StatusCode),
MoveAbort(AbortLocation, u64),
ExecutionFailure {
status_code: StatusCode,
location: AbortLocation,
function: u16,
code_offset: u16,
},
}
Expand description
A VMStatus
is represented as either
Executed
indicating successful executionError
indicating an error from the VM itselfMoveAbort
indicating anabort
ocurred inside of a Move program
Variants
The VM status corresponding to an EXECUTED status code
Error(StatusCode)
Indicates an error from the VM, e.g. OUT_OF_GAS, INVALID_AUTH_KEY, RET_TYPE_MISMATCH_ERROR etc. The code will neither EXECUTED nor ABORTED
Tuple Fields of Error
0: StatusCode
MoveAbort(AbortLocation, u64)
Indicates an abort
from inside Move code. Contains the location of the abort and the code
Tuple Fields of MoveAbort
0: AbortLocation
1: u64
Indicates an failure from inside Move code, where the VM could not continue exection, e.g. dividing by zero or a missing resource
Fields of ExecutionFailure
Implementations
Return the status code for the VMStatus
Returns the Move abort code if the status is MoveAbort
, and None
otherwise
Return the status type for this VMStatus
. This is solely determined by the status_code
Returns Ok
with a recorded status if it should be kept, Err
of the error code if it
should be discarded
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for VMStatus
impl UnwindSafe for VMStatus
Blanket Implementations
Mutably borrows from an owned value. Read more