Expand description
metering
is a middleware for tracking how many operators are
executed in total and putting a limit on the total number of
operators executed. The WebAssembly instance execution is stopped
when the limit is reached.
§Example
Structs§
- Function
Metering - The function-level metering middleware.
- Metering
- The module-level metering middleware.
- Metering
Global 🔒Indexes
Enums§
- Metering
Points - Represents the type of the metering points, either
Remaining
orExhausted
.
Functions§
- get_
remaining_ points - Get the remaining points in an [
Instance
]. - is_
accounting - Returns
true
if and only if the given operator is an accounting operator. Accounting operators do additional work to track the metering points. - set_
remaining_ points - Set the new provided remaining points in an [
Instance
].