rune::runtime::budget

Function acquire

Source
pub fn acquire() -> BudgetGuard
Expand description

Acquire the current budget.

Use BudgetGuard::take to take permites from the returned budget.