pub struct WasmExecutionLimits {Show 14 fields
pub max_fuel: Option<u64>,
pub max_memory_bytes: Option<u64>,
pub max_stack_bytes: Option<u64>,
pub max_module_file_bytes: Option<u64>,
pub max_spawn_file_actions: Option<u64>,
pub max_spawn_file_action_bytes: Option<u64>,
pub max_open_fds: Option<u64>,
pub max_sockets: Option<u64>,
pub max_blocking_read_ms: Option<u64>,
pub prewarm_timeout_ms: Option<u64>,
pub runner_heap_limit_mb: Option<u32>,
pub runner_cpu_time_limit_ms: Option<u32>,
pub reactor_work_quantum: Option<usize>,
pub bridge_call_timeout_ms: Option<u64>,
}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. Until the V8 runner exposes an enforceable per-module stack lever, any configured value fails closed rather than silently using V8’s unrelated default stack bound.
max_module_file_bytes: Option<u64>Maximum executable image bytes accepted for initial and replacement modules. The trusted runner needs the typed value for fexecve preads.
max_spawn_file_actions: Option<u64>Maximum number of file actions decoded for one posix_spawn call.
max_spawn_file_action_bytes: Option<u64>Maximum serialized file-action bytes accepted for one posix_spawn call.
max_open_fds: Option<u64>Maximum guest-visible open descriptors, including runner-owned sockets.
max_sockets: Option<u64>Maximum runner-owned guest sockets.
max_blocking_read_ms: Option<u64>Maximum time a blocking runner syscall may cooperatively wait.
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.
runner_cpu_time_limit_ms: Option<u32>Active-CPU cap for the trusted JS runner isolate that hosts WASI/WASM.
reactor_work_quantum: Option<usize>VM readiness work bound forwarded unchanged to the WASI V8 runner.
bridge_call_timeout_ms: Option<u64>Per-call host bridge deadline forwarded unchanged to the WASI V8 runner.
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 more