Struct solana_runtime::cost_model::CostModel [−][src]
pub struct CostModel { /* fields omitted */ }
Implementations
pub fn calculate_cost(
&self,
transaction: &SanitizedTransaction,
demote_program_write_locks: bool
) -> TransactionCost
pub fn upsert_instruction_cost(
&mut self,
program_key: &Pubkey,
cost: u64
) -> Result<u64, &'static str>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CostModel
impl UnwindSafe for CostModel
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more