Struct solana_runtime::cost_tracker::CostTracker [−][src]
pub struct CostTracker { /* fields omitted */ }
Implementations
pub fn would_transaction_fit(
&self,
_transaction: &Transaction,
tx_cost: &TransactionCost
) -> Result<(), CostTrackerError>
pub fn try_add(
&mut self,
_transaction: &Transaction,
tx_cost: &TransactionCost
) -> Result<u64, CostTrackerError>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CostTracker
impl Send for CostTracker
impl Sync for CostTracker
impl Unpin for CostTracker
impl UnwindSafe for CostTracker
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