Struct solana_sdk::process_instruction::MockInvokeContext [−][src]
Fields
key: Pubkey
logger: MockLogger
bpf_compute_budget: BpfComputeBudget
compute_meter: MockComputeMeter
programs: Vec<(Pubkey, ProcessInstructionWithContext)>
invoke_depth: usize
Trait Implementations
impl Default 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<Account>>],
_caller_pivileges: Option<&[bool]>
) -> Result<(), InstructionError>
[src]
&mut self,
_message: &Message,
_instruction: &CompiledInstruction,
_accounts: &[Rc<RefCell<Account>>],
_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<RefCell<Account>>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for MockInvokeContext
impl !Send for MockInvokeContext
impl !Sync for MockInvokeContext
impl Unpin for MockInvokeContext
impl !UnwindSafe for MockInvokeContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,