pub trait Executor:
Debug
+ Send
+ Sync {
// Required method
fn execute(
&self,
first_instruction_account: usize,
invoke_context: &mut InvokeContext<'_>,
) -> Result<(), InstructionError>;
}
Expand description
Program executor
Required Methods§
Sourcefn execute(
&self,
first_instruction_account: usize,
invoke_context: &mut InvokeContext<'_>,
) -> Result<(), InstructionError>
fn execute( &self, first_instruction_account: usize, invoke_context: &mut InvokeContext<'_>, ) -> Result<(), InstructionError>
Execute the program