pub trait WasmPoolStats: Send + Sync {
// Required method
fn snapshot(&self) -> Vec<WasmPoolSummary>;
}Expand description
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).
Required Methods§
Sourcefn snapshot(&self) -> Vec<WasmPoolSummary>
fn snapshot(&self) -> Vec<WasmPoolSummary>
Snapshot every live pool. Read-only: must not instantiate modules, build instances, or mutate runtime state. Returning stale entries is acceptable — implementations may prune dead weak refs as part of the snapshot.