Struct core_processor::ProcessorContext
source · pub struct ProcessorContext {Show 18 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 performance_multiplier: Percent,
pub program_id: ProgramId,
pub program_candidates_data: BTreeMap<CodeId, Vec<(MessageId, ProgramId)>>,
pub forbidden_funcs: BTreeSet<SyscallName>,
pub reserve_for: u32,
pub random_data: (Vec<u8>, u32),
pub gas_multiplier: GasMultiplier,
pub existential_deposit: u128,
pub mailbox_threshold: u64,
pub costs: ExtCosts,
}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.
performance_multiplier: PercentPerformance multiplier.
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).
forbidden_funcs: BTreeSet<SyscallName>Functions forbidden to be called.
reserve_for: u32Reserve for parameter of scheduling.
random_data: (Vec<u8>, u32)Output from Randomness.
gas_multiplier: GasMultiplierGas multiplier.
existential_deposit: u128Existential deposit.
mailbox_threshold: u64Mailbox threshold.
costs: ExtCostsExecution externalities costs.
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from.