Module rune::runtime::budget

source ·
Expand description

Budgeting module for Runestick.

This module contains methods which allows for limiting the execution of the virtual machine to abide by the specified budget.

By default the budget is disabled, but can be enabled by wrapping your function call in with.

Structs§

Functions§

  • Take a ticket from the budget, returning true if we were still within the budget before the ticket was taken, false otherwise.
  • Wrap the given value with a budget.