Skip to main content

ParentVmState

Struct ParentVmState 

Source
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: OwnedCellSlice

Parent code slice.

§stack: SafeRc<Stack>

Parent stack.

§signature_domains: SafeRc<Vec<SignatureDomain>>

Parent signature domain stack.

§cr: ControlRegs

Parent control registers.

§committed_state: Option<CommittedState>

Parent committed state.

§steps: u64

Parent VM steps.

§quit0: SafeRc<QuitCont>

Parent c0 continuation.

§quit1: SafeRc<QuitCont>

Parent c1 continuation.

§gas: ParentGasConsumer<'a>

Gas to restore.

§cp: &'static DispatchTable

Parent codepage.

§return_data: bool

Push child c4 when restoring this state.

§return_actions: bool

Push child c5 when restoring this state.

§return_gas: bool

Push 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> SafeDelete for T
where T: 'static,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> EquivalentRepr<T> for T