Struct solana_sdk::process_instruction::MockInvokeContext [−][src]
pub struct MockInvokeContext { pub key: Pubkey, 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 invoke_depth: usize, pub sysvars: Vec<(Pubkey, Option<Rc<Vec<u8>>>)>, }
Fields
key: Pubkey
logger: MockLogger
bpf_compute_budget: BpfComputeBudget
compute_meter: MockComputeMeter
programs: Vec<(Pubkey, ProcessInstructionWithContext)>
accounts: Vec<(Pubkey, Rc<RefCell<AccountSharedData>>)>
invoke_depth: usize
sysvars: Vec<(Pubkey, Option<Rc<Vec<u8>>>)>
Trait Implementations
impl Default for MockInvokeContext
[src]
impl Default for MockInvokeContext
[src]impl InvokeContext for MockInvokeContext
[src]
impl InvokeContext for MockInvokeContext
[src]fn push(&mut self, _key: &Pubkey) -> Result<(), InstructionError>
[src]
fn pop(&mut self)
[src]
fn invoke_depth(&self) -> usize
[src]
fn verify_and_update(
&mut self,
_message: &Message,
_instruction: &CompiledInstruction,
_accounts: &[Rc<RefCell<AccountSharedData>>],
_caller_pivileges: Option<&[bool]>
) -> Result<(), InstructionError>
[src]
&mut self,
_message: &Message,
_instruction: &CompiledInstruction,
_accounts: &[Rc<RefCell<AccountSharedData>>],
_caller_pivileges: Option<&[bool]>
) -> Result<(), InstructionError>
fn get_caller(&self) -> Result<&Pubkey, InstructionError>
[src]
fn get_programs(&self) -> &[(Pubkey, ProcessInstructionWithContext)]ⓘ
[src]
fn get_logger(&self) -> Rc<RefCell<dyn Logger>>
[src]
fn get_bpf_compute_budget(&self) -> &BpfComputeBudget
[src]
fn get_compute_meter(&self) -> Rc<RefCell<dyn ComputeMeter>>
[src]
fn add_executor(&self, _pubkey: &Pubkey, _executor: Arc<dyn Executor>)
[src]
fn get_executor(&self, _pubkey: &Pubkey) -> Option<Arc<dyn Executor>>
[src]
fn record_instruction(&self, _instruction: &Instruction)
[src]
fn is_feature_active(&self, _feature_id: &Pubkey) -> bool
[src]
fn get_account(&self, pubkey: &Pubkey) -> Option<Rc<RefCell<AccountSharedData>>>
[src]
fn update_timing(
&mut self,
_serialize_us: u64,
_create_vm_us: u64,
_execute_us: u64,
_deserialize_us: u64
)
[src]
&mut self,
_serialize_us: u64,
_create_vm_us: u64,
_execute_us: u64,
_deserialize_us: u64
)
fn get_sysvar_data(&mut self, id: &Pubkey) -> Option<Rc<Vec<u8>>>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for MockInvokeContext
impl !RefUnwindSafe for MockInvokeContext
impl !Send for MockInvokeContext
impl !Send for MockInvokeContext
impl !Sync for MockInvokeContext
impl !Sync for MockInvokeContext
impl Unpin for MockInvokeContext
impl Unpin for MockInvokeContext
impl !UnwindSafe for MockInvokeContext
impl !UnwindSafe for MockInvokeContext