Module limits

Module limits 

Source
Expand description

Helpers for cooperative execution time and memory limits.

Structs§

ExecutionTimer
Cooperative time-limit tracker shared across interpreter and VM loops.
ExecutionTimerConfig
Public configuration for the cooperative execution time limiter.

Enums§

LimitError
Errors reported when execution time or memory ceilings are enforced.
TimeSourceRegistrationError

Traits§

TimeSource
Monotonic time provider.

Functions§

check_memory_limit_if_needed
enforce_memory_limit
fallback_execution_timer_config
Returns the process-wide fallback configuration for the execution time limiter, if any.
monotonic_now
Returns the duration supplied by the chosen source for this build.
set_fallback_execution_timer_config
Sets the process-wide fallback configuration for the execution time limiter. Engine instances can override this fallback via Engine::set_execution_timer_config.
set_time_source