solana_runtime::compute_budget_details

Trait GetComputeBudgetDetails

Source
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§

Source

fn get_compute_budget_details( &self, round_compute_unit_price_enabled: bool, ) -> Option<ComputeBudgetDetails>

Provided Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl GetComputeBudgetDetails for SanitizedTransaction

Source§

fn get_compute_budget_details( &self, round_compute_unit_price_enabled: bool, ) -> Option<ComputeBudgetDetails>

Source§

impl GetComputeBudgetDetails for SanitizedVersionedTransaction

Source§

fn get_compute_budget_details( &self, round_compute_unit_price_enabled: bool, ) -> Option<ComputeBudgetDetails>

Implementors§