Module wasmer_middlewares::metering

source ·
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

See the metering detailed and complete example.

Structs§

Enums§

  • Represents the type of the metering points, either Remaining or Exhausted.

Functions§

  • Get the remaining points in an [Instance][wasmer::Instance].
  • Returns true if and only if the given operator is an accounting operator. Accounting operators do additional work to track the metering points.
  • Set the new provided remaining points in an [Instance][wasmer::Instance].