pub enum ExecOutcome {
Finished {
gas_left: i64,
},
Syscall {
gas_left: i64,
syscall_no: u32,
a0: u64,
a1: u64,
a2: u64,
a3: u64,
a4: u64,
a5: u64,
},
}Expand description
The outcome of a single virtualization execution step.
Returned by Virtualization::run.
Variants§
Finished
Execution finished normally.
Syscall
A syscall was encountered. The caller should handle the syscall and then
call Virtualization::run again to continue execution.
Trait Implementations§
Source§impl Debug for ExecOutcome
impl Debug for ExecOutcome
Source§impl PartialEq for ExecOutcome
impl PartialEq for ExecOutcome
impl Eq for ExecOutcome
impl StructuralPartialEq for ExecOutcome
Auto Trait Implementations§
impl Freeze for ExecOutcome
impl RefUnwindSafe for ExecOutcome
impl Send for ExecOutcome
impl Sync for ExecOutcome
impl Unpin for ExecOutcome
impl UnsafeUnpin for ExecOutcome
impl UnwindSafe for ExecOutcome
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