Delegate `check`/`record` to `inner` in addition to maintaining the shared ledger — lets a host's existing per-tenant guard keep working while the workflow gets its aggregate cap.
(mut self, inner: Arc<dyn BudgetGuard>)
| 72 | /// shared ledger — lets a host's existing per-tenant guard keep working |
| 73 | /// while the workflow gets its aggregate cap. |
| 74 | pub fn with_inner(mut self, inner: Arc<dyn BudgetGuard>) -> Self { |
| 75 | self.inner = Some(inner); |
| 76 | self |
| 77 | } |
| 78 | |
| 79 | /// Total tokens recorded so far. |
| 80 | pub fn consumed_tokens(&self) -> u64 { |
no outgoing calls
no test coverage detected