pub struct ProcessorContext {Show 23 fields
pub gas_counter: GasCounter,
pub gas_allowance_counter: GasAllowanceCounter,
pub gas_reserver: GasReserver,
pub system_reservation: Option<u64>,
pub value_counter: ValueCounter,
pub allocations_context: AllocationsContext,
pub message_context: MessageContext,
pub block_info: BlockInfo,
pub max_pages: WasmPage,
pub page_costs: PageCosts,
pub existential_deposit: u128,
pub program_id: ProgramId,
pub program_candidates_data: BTreeMap<CodeId, Vec<(MessageId, ProgramId)>>,
pub program_rents: BTreeMap<ProgramId, u32>,
pub host_fn_weights: HostFnWeights,
pub forbidden_funcs: BTreeSet<SysCallName>,
pub mailbox_threshold: u64,
pub waitlist_cost: u64,
pub dispatch_hold_cost: u64,
pub reserve_for: u32,
pub reservation: u64,
pub random_data: (Vec<u8>, u32),
pub rent_cost: u128,
}Expand description
Processor context.
Fields§
§gas_counter: GasCounterGas counter.
gas_allowance_counter: GasAllowanceCounterGas allowance counter.
gas_reserver: GasReserverReserved gas counter.
system_reservation: Option<u64>System reservation.
value_counter: ValueCounterValue counter.
allocations_context: AllocationsContextAllocations context.
message_context: MessageContextMessage context.
block_info: BlockInfoBlock info.
max_pages: WasmPageMax allowed wasm memory pages.
page_costs: PageCostsAllocations config.
existential_deposit: u128Account existential deposit
program_id: ProgramIdCurrent program id
program_candidates_data: BTreeMap<CodeId, Vec<(MessageId, ProgramId)>>Map of code hashes to program ids of future programs, which are planned to be initialized with the corresponding code (with the same code hash).
program_rents: BTreeMap<ProgramId, u32>Map of program ids to paid blocks.
host_fn_weights: HostFnWeightsWeights of host functions.
forbidden_funcs: BTreeSet<SysCallName>Functions forbidden to be called.
mailbox_threshold: u64Mailbox threshold.
waitlist_cost: u64Cost for single block waitlist holding.
dispatch_hold_cost: u64Cost of holding a message in dispatch stash.
reserve_for: u32Reserve for parameter of scheduling.
reservation: u64Cost for reservation holding.
random_data: (Vec<u8>, u32)Output from Randomness.
rent_cost: u128Rent cost per block.
Auto Trait Implementations§
impl Freeze for ProcessorContext
impl RefUnwindSafe for ProcessorContext
impl Send for ProcessorContext
impl Sync for ProcessorContext
impl Unpin for ProcessorContext
impl UnwindSafe for ProcessorContext
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