Skip to main content

Module wasm_runtime

Module wasm_runtime 

Source

Structs§

BytesView
Mirrors the WIT bytes-view record from vane:plugin/types@0.1.0.
ContextEntry
Mirrors the WIT context-entry record from vane:plugin/types@0.1.0.
Header
Mirrors the WIT header record from vane:plugin/types@0.1.0.
L4BytesInput
Mirrors the WIT l4-bytes-input record from vane:plugin/handler-l4-bytes@0.1.0.
L4PeekInput
Mirrors the WIT l4-peek-input record from vane:plugin/handler-l4-peek@0.1.0.
L7RequestInput
Mirrors the WIT l7-request-input record from vane:plugin/handler-l7-request@0.1.0.
L7ResponseInput
Mirrors the WIT l7-response-input record from vane:plugin/handler-l7-response@0.1.0.
ModifiedResponse
Mirrors the WIT modified-response record from vane:plugin/handler-l7-response@0.1.0.
ModuleId
Stable identity for a loaded WASM component.
PluginExport
Metadata for a single exported middleware within a WASM component.
PluginHttpPolicy
Operator-owned per-plugin policy gating outbound http-fetch calls and bounding their body / timeout / redirect behaviour.
PluginMetadata
Cached result of registry.get-metadata() for one WASM component.
PluginPolicyTable
Operator-owned policy table keyed by .wasm file stem. Built at boot from <config_dir>/wasm/policy.json and looked up by the daemon’s wasm loader when constructing per-plugin host state.
PluginTrap
Wasmtime trap details from a guest crash or epoch timeout. Wraps a String because wasmtime::Trap is not Clone; the engine stringifies the trap once at the call boundary so downstream observers see a stable, owned value.
SynthResponse
Mirrors the WIT synth-response record from vane:plugin/handler-l7-request@0.1.0.
WasmPoolSummary
One pool entry surfaced by WasmPoolStats::snapshot. Mirrors the shape vane-wasm produces internally; lives in vane-core so the daemon can consume the data via a trait object without depending on vane-wasm (which sits behind the optional wasm feature).

Enums§

ContextValue
Mirrors the WIT context-value variant from vane:plugin/types@0.1.0.
L4BytesDecision
Mirrors the WIT l4-bytes-decision variant from vane:plugin/handler-l4-bytes@0.1.0.
L4PeekDecision
Mirrors the WIT l4-peek-decision variant from vane:plugin/handler-l4-peek@0.1.0.
L7RequestDecision
Mirrors the WIT l7-request-decision variant from vane:plugin/handler-l7-request@0.1.0.
L7ResponseDecision
Mirrors the WIT l7-response-decision variant from vane:plugin/handler-l7-response@0.1.0.
PluginError
Structured error from a plugin invocation.

Traits§

WasmPoolStats
Read-only introspection of WASM pool runtime state. Implemented by vane-wasm::WasmtimeRuntime; held by the daemon as Option<Arc<dyn WasmPoolStats>> so builds without the optional wasm feature can still consume the trait surface and serve the get_pools mgmt verb (returning an empty list).
WasmRuntime
Runtime contract between the executor and the WASM plugin layer.