Struct solana_sdk::process_instruction::MockInvokeContext[][src]

pub struct MockInvokeContext<'a> {
    pub invoke_stack: Vec<InvokeContextStackFrame<'a>>,
    pub logger: MockLogger,
    pub bpf_compute_budget: BpfComputeBudget,
    pub compute_meter: MockComputeMeter,
    pub programs: Vec<(Pubkey, ProcessInstructionWithContext)>,
    pub accounts: Vec<(Pubkey, Rc<RefCell<AccountSharedData>>)>,
    pub sysvars: Vec<(Pubkey, Option<Rc<Vec<u8>>>)>,
}

Fields

invoke_stack: Vec<InvokeContextStackFrame<'a>>logger: MockLoggerbpf_compute_budget: BpfComputeBudgetcompute_meter: MockComputeMeterprograms: Vec<(Pubkey, ProcessInstructionWithContext)>accounts: Vec<(Pubkey, Rc<RefCell<AccountSharedData>>)>sysvars: Vec<(Pubkey, Option<Rc<Vec<u8>>>)>

Implementations

Trait Implementations

Push a stack frame onto the invocation stack Read more

Pop a stack frame from the invocation stack Read more

Current depth of the invocation stake

Verify and update PreAccount state based on program execution

Get the program ID of the currently executing program

Removes the first keyed account

Get the list of keyed accounts

Get a list of built-in programs

Get this invocation’s logger

Get this invocation’s compute budget

Get this invocation’s compute meter

Loaders may need to do work in order to execute a program. Cache the work that can be re-used across executions Read more

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

Record invoked instruction

Get the bank’s active feature set

Get an account from a pre-account

Update timing

Get sysvar data

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

Performs the conversion.

Performs the conversion.

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.