pub trait Executor: Debug + Send + Sync {
    // Required method
    fn execute<'a, 'b>(
        &self,
        first_instruction_account: usize,
        instruction_data: &[u8],
        invoke_context: &'a mut InvokeContext<'b>
    ) -> Result<(), InstructionError>;
}
Expand description

Program executor

Required Methods§

source

fn execute<'a, 'b>( &self, first_instruction_account: usize, instruction_data: &[u8], invoke_context: &'a mut InvokeContext<'b> ) -> Result<(), InstructionError>

Execute the program

Implementors§