Struct polkavm_common::zygote::VmCtxSyscall
source · #[repr(C)]pub struct VmCtxSyscall {
pub gas: UnsafeCell<i64>,
pub hostcall: UnsafeCell<u32>,
pub regs: UnsafeCell<[u32; 13]>,
pub nth_instruction: UnsafeCell<u32>,
pub rip: UnsafeCell<u64>,
}
Fields§
§gas: UnsafeCell<i64>
The current gas counter.
hostcall: UnsafeCell<u32>
The hostcall number that was triggered.
regs: UnsafeCell<[u32; 13]>
A dump of all of the registers of the VM.
nth_instruction: UnsafeCell<u32>
The number of the instruction just about to be executed.
Should be treated as empty if equal to SANDBOX_EMPTY_NTH_INSTRUCTION
.
rip: UnsafeCell<u64>
The current RIP. Filled out in case of a trap or during tracing.
Should be treated as empty if equal to SANDBOX_EMPTY_NATIVE_PROGRAM_COUNTER
.
Auto Trait Implementations§
impl !Freeze for VmCtxSyscall
impl !RefUnwindSafe for VmCtxSyscall
impl Send for VmCtxSyscall
impl !Sync for VmCtxSyscall
impl Unpin for VmCtxSyscall
impl UnwindSafe for VmCtxSyscall
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