pub struct WasmExecutionContext {
pub gas_counter: GasCounter,
pub gas_allowance_counter: GasAllowanceCounter,
pub gas_reserver: GasReserver,
pub program: Program,
pub pages_initial_data: BTreeMap<GearPage, PageBuf>,
pub memory_size: WasmPage,
}Expand description
Execution context.
Fields§
§gas_counter: GasCounterA counter for gas.
gas_allowance_counter: GasAllowanceCounterA counter for gas allowance.
gas_reserver: GasReserverGas reserver.
program: ProgramProgram to be executed.
pages_initial_data: BTreeMap<GearPage, PageBuf>Memory pages with initial data.
memory_size: WasmPageSize of the memory block.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WasmExecutionContext
impl RefUnwindSafe for WasmExecutionContext
impl Send for WasmExecutionContext
impl Sync for WasmExecutionContext
impl Unpin for WasmExecutionContext
impl UnwindSafe for WasmExecutionContext
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