Struct gemachain_program_runtime::InstructionProcessor [−][src]
pub struct InstructionProcessor { /* fields omitted */ }Implementations
pub fn add_program(
&mut self,
program_id: Pubkey,
process_instruction: ProcessInstructionWithContext
)
pub fn add_program(
&mut self,
program_id: Pubkey,
process_instruction: ProcessInstructionWithContext
)
Add a static entrypoint to intercept instructions before the dynamic loader.
pub fn process_instruction(
&self,
program_id: &Pubkey,
instruction_data: &[u8],
invoke_context: &mut dyn InvokeContext
) -> Result<(), InstructionError>
pub fn process_instruction(
&self,
program_id: &Pubkey,
instruction_data: &[u8],
invoke_context: &mut dyn InvokeContext
) -> Result<(), InstructionError>
Process an instruction This method calls the instruction’s program entrypoint method
pub fn create_message(
instruction: &Instruction,
signers: &[Pubkey],
invoke_context: &RefMut<'_, &mut dyn InvokeContext>
) -> Result<(Message, Vec<bool>, Vec<usize>), InstructionError>
pub fn native_invoke(
invoke_context: &mut dyn InvokeContext,
instruction: Instruction,
keyed_account_indices_obsolete: &[usize],
signers: &[Pubkey]
) -> Result<(), InstructionError>
pub fn native_invoke(
invoke_context: &mut dyn InvokeContext,
instruction: Instruction,
keyed_account_indices_obsolete: &[usize],
signers: &[Pubkey]
) -> Result<(), InstructionError>
Entrypoint for a cross-program invocation from a native program
Process a cross-program instruction This method calls the instruction’s program entrypoint function
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for InstructionProcessor
impl Send for InstructionProcessor
impl Sync for InstructionProcessor
impl Unpin for InstructionProcessor
impl UnwindSafe for InstructionProcessor
Blanket Implementations
pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
Mutably borrows from an owned value. Read more