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>

Object Safety§

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§