pub struct WasmExecutionLimits {
pub max_fuel: Option<u64>,
pub max_memory_bytes: Option<u64>,
pub max_stack_bytes: Option<u64>,
pub prewarm_timeout_ms: Option<u64>,
pub runner_heap_limit_mb: Option<u32>,
}Expand description
Per-execution WebAssembly runtime limits, carried as typed fields rather
than AGENTOS_WASM_* env vars. Populated by the sidecar from the per-VM
kernel ResourceLimits (originating from CreateVmConfig on the BARE wire);
None selects “unlimited / engine default”. See the env-vs-wire rule in
crates/sidecar/CLAUDE.md.
Fields§
§max_fuel: Option<u64>Fuel budget, enforced as a wall-clock timeout (ms) by the WASI runtime.
max_memory_bytes: Option<u64>Linear-memory cap in bytes, validated against the module’s declared initial/maximum memory before execution.
max_stack_bytes: Option<u64>Stack cap in bytes. Validated from the typed wire value so bad config
fails closed; runtime V8 stack-limit enforcement is a follow-up — see
[resolve_wasm_stack_limit_bytes].
prewarm_timeout_ms: Option<u64>Best-effort warmup/compile-cache timeout in ms.
runner_heap_limit_mb: Option<u32>V8 heap cap for the trusted JS runner isolate that hosts WASI/WASM.
Trait Implementations§
Source§impl Clone for WasmExecutionLimits
impl Clone for WasmExecutionLimits
Source§fn clone(&self) -> WasmExecutionLimits
fn clone(&self) -> WasmExecutionLimits
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WasmExecutionLimits
impl Debug for WasmExecutionLimits
Source§impl Default for WasmExecutionLimits
impl Default for WasmExecutionLimits
Source§fn default() -> WasmExecutionLimits
fn default() -> WasmExecutionLimits
impl Eq for WasmExecutionLimits
Source§impl PartialEq for WasmExecutionLimits
impl PartialEq for WasmExecutionLimits
Source§fn eq(&self, other: &WasmExecutionLimits) -> bool
fn eq(&self, other: &WasmExecutionLimits) -> bool
self and other values to be equal, and is used by ==.