solana_runtime::transaction_priority_details

Trait GetTransactionPriorityDetails

source
pub trait GetTransactionPriorityDetails {
    // Required method
    fn get_transaction_priority_details(
        &self,
        round_compute_unit_price_enabled: bool,
    ) -> Option<TransactionPriorityDetails>;

    // Provided method
    fn process_compute_budget_instruction<'a>(
        instructions: impl Iterator<Item = (&'a Pubkey, &'a CompiledInstruction)>,
        _round_compute_unit_price_enabled: bool,
    ) -> Option<TransactionPriorityDetails> { ... }
}

Required Methods§

source

fn get_transaction_priority_details( &self, round_compute_unit_price_enabled: bool, ) -> Option<TransactionPriorityDetails>

Provided Methods§

source

fn process_compute_budget_instruction<'a>( instructions: impl Iterator<Item = (&'a Pubkey, &'a CompiledInstruction)>, _round_compute_unit_price_enabled: bool, ) -> Option<TransactionPriorityDetails>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl GetTransactionPriorityDetails for SanitizedTransaction

source§

fn get_transaction_priority_details( &self, round_compute_unit_price_enabled: bool, ) -> Option<TransactionPriorityDetails>

source§

impl GetTransactionPriorityDetails for SanitizedVersionedTransaction

source§

fn get_transaction_priority_details( &self, round_compute_unit_price_enabled: bool, ) -> Option<TransactionPriorityDetails>

Implementors§