pub struct InvokeContext<'a> {
    pub sysvar_cache: Cow<'a, SysvarCache>,
    pub instruction_trace: Vec<InstructionRecorder>,
    pub feature_set: Arc<FeatureSet>,
    pub timings: ExecuteDetailsTimings,
    pub blockhash: Hash,
    pub lamports_per_signature: u64,
    pub return_data: (Pubkey, Vec<u8>),
    /* private fields */
}

Fields

sysvar_cache: Cow<'a, SysvarCache>instruction_trace: Vec<InstructionRecorder>feature_set: Arc<FeatureSet>timings: ExecuteDetailsTimingsblockhash: Hashlamports_per_signature: u64return_data: (Pubkey, Vec<u8>)

Implementations

Push a stack frame onto the invocation stack

Pop a stack frame from the invocation stack

Current height of the stack

Entrypoint for a cross-program invocation from a builtin program

Helper to prepare for process_instruction()

Processes a cross-program instruction and returns how many compute units were used

Get the program ID of the currently executing program

Get the owner of the currently executing program

👎 Deprecated since 1.9.0:

To be removed together with remove_native_loader

Removes the first keyed account

Get the list of keyed accounts

Get the list of keyed accounts without the chain of program accounts

Note: This only contains the KeyedAccounts passed by the caller.

Get this invocation’s LogCollector

Get this invocation’s ComputeMeter

Get this invocation’s AccountsDataMeter

Cache an executor that wasn’t found in the cache

Cache an executor that has changed

Get the completed loader work that can be re-used across execution

Find an account_index and account by its key

Get this invocation’s compute budget

Get cached sysvars

Record top-level instruction in the instruction trace

Record instruction in the instruction trace

Get the instruction trace

Get the mutable instruction trace

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.