pub trait GetComputeBudgetDetails {
// Required method
fn get_compute_budget_details(
&self,
round_compute_unit_price_enabled: bool,
) -> Option<ComputeBudgetDetails>;
// Provided method
fn process_compute_budget_instruction<'a>(
instructions: impl Iterator<Item = (&'a Pubkey, &'a CompiledInstruction)>,
_round_compute_unit_price_enabled: bool,
) -> Option<ComputeBudgetDetails> { ... }
}
Required Methods§
fn get_compute_budget_details( &self, round_compute_unit_price_enabled: bool, ) -> Option<ComputeBudgetDetails>
Provided Methods§
fn process_compute_budget_instruction<'a>( instructions: impl Iterator<Item = (&'a Pubkey, &'a CompiledInstruction)>, _round_compute_unit_price_enabled: bool, ) -> Option<ComputeBudgetDetails>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.