Skip to main content

Module cost

Module cost 

Re-exports§

pub use tracker::CostTracker;
pub use tracker::SubtreeSpend;
pub use types::*;

Modules§

tracker
types

Constants§

MAX_SANE_USD_RATE
Upper bound for any configured or discovered USD cost rate.

Functions§

is_sane_usd_rate
Whether a USD rate is finite, non-negative, and within the shared safety bound. Zero remains valid so an explicitly free resource is distinguishable from unavailable pricing.