pub struct WasmConfig {
pub enabled: bool,
pub pool_size: usize,
pub fuel_per_request: u64,
pub max_memory_bytes: usize,
pub checkout_timeout_ms: u64,
pub plugins: Vec<WasmPluginConfig>,
}Expand description
Proxy-Wasm plugin runtime (B3). Loads one or more .wasm filters at boot and runs each
as a WafModule on every request (structural). The runtime is the OPEN baseline
(BOUNDARY.md §1.7); a plugin whose .wasm cannot be compiled/instantiated is logged
and skipped (fail-open at load, like CRS) while the per-request posture is fail-closed.
Fields§
§enabled: boolDefault OFF (opt-in per deployment).
pool_size: usizePre-instantiated guest instances per plugin (the request concurrency a plugin can serve before callers queue on checkout).
fuel_per_request: u64Per-request fuel budget — the plugin’s CPU/latency ceiling (it runs on every request). Exhaustion traps and fails closed.
max_memory_bytes: usizePer-instance linear-memory cap (bytes). Growth beyond it is denied → fail closed.
checkout_timeout_ms: u64How long a request waits for a free instance before failing closed (pool exhaustion).
plugins: Vec<WasmPluginConfig>The plugins to load, in order.
Trait Implementations§
Source§impl Clone for WasmConfig
impl Clone for WasmConfig
Source§fn clone(&self) -> WasmConfig
fn clone(&self) -> WasmConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more