pub struct ParentVmState<'a> {Show 15 fields
pub code: OwnedCellSlice,
pub stack: SafeRc<Stack>,
pub signature_domains: SafeRc<Vec<SignatureDomain>>,
pub cr: ControlRegs,
pub committed_state: Option<CommittedState>,
pub steps: u64,
pub quit0: SafeRc<QuitCont>,
pub quit1: SafeRc<QuitCont>,
pub gas: ParentGasConsumer<'a>,
pub cp: &'static DispatchTable,
pub return_data: bool,
pub return_actions: bool,
pub return_gas: bool,
pub return_values: Option<u32>,
pub parent: Option<Box<ParentVmState<'a>>>,
}Expand description
Parent execution state.
Fields§
§code: OwnedCellSliceParent code slice.
stack: SafeRc<Stack>Parent stack.
signature_domains: SafeRc<Vec<SignatureDomain>>Parent signature domain stack.
cr: ControlRegsParent control registers.
committed_state: Option<CommittedState>Parent committed state.
steps: u64Parent VM steps.
quit0: SafeRc<QuitCont>Parent c0 continuation.
quit1: SafeRc<QuitCont>Parent c1 continuation.
gas: ParentGasConsumer<'a>Gas to restore.
cp: &'static DispatchTableParent codepage.
return_data: boolPush child c4 when restoring this state.
return_actions: boolPush child c5 when restoring this state.
return_gas: boolPush consumed gas when restoring this state.
return_values: Option<u32>Number of return values.
None means that child stack will be merged with the parent.
parent: Option<Box<ParentVmState<'a>>>Previous parent.
Auto Trait Implementations§
impl<'a> !Freeze for ParentVmState<'a>
impl<'a> !RefUnwindSafe for ParentVmState<'a>
impl<'a> !Send for ParentVmState<'a>
impl<'a> !Sync for ParentVmState<'a>
impl<'a> Unpin for ParentVmState<'a>
impl<'a> !UnwindSafe for ParentVmState<'a>
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