Total tokens recorded so far.
(&self)
| 78 | |
| 79 | /// Total tokens recorded so far. |
| 80 | pub fn consumed_tokens(&self) -> u64 { |
| 81 | self.consumed_tokens.load(Ordering::SeqCst) |
| 82 | } |
| 83 | |
| 84 | /// A point-in-time view of the ledger. |
| 85 | pub fn snapshot(&self) -> BudgetSnapshot { |