pub struct WasmPoolSummary {
pub kind: String,
pub key: String,
pub export: String,
pub capacity: usize,
pub available: usize,
pub total_allocations: u64,
pub failures: u64,
}Expand description
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).
Fields§
§kind: String"stateful" or "stateless". Static-string in vane-wasm,
owned here so the trait object can return any backend’s labels.
key: StringModule identity — typically the canonical absolute path of the
.wasm file (matches ModuleId).
export: StringExport name within the component (e.g. "l4-peek").
capacity: usizePre-warmed instance count for the pool. 0 when the pool has
no warm cache (e.g. on-demand stateless instantiation).
available: usizeCurrently checked-in instances. capacity - available is the
number in flight; the daemon translates that to in_use on the
wire.
total_allocations: u64Cumulative successful allocations (stateful checkouts + stateless rentals).
failures: u64Cumulative allocation failures (stateful exhaustion + stateless instantiation errors).
Trait Implementations§
Source§impl Clone for WasmPoolSummary
impl Clone for WasmPoolSummary
Source§fn clone(&self) -> WasmPoolSummary
fn clone(&self) -> WasmPoolSummary
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 WasmPoolSummary
impl Debug for WasmPoolSummary
Source§impl PartialEq for WasmPoolSummary
impl PartialEq for WasmPoolSummary
Source§fn eq(&self, other: &WasmPoolSummary) -> bool
fn eq(&self, other: &WasmPoolSummary) -> bool
self and other values to be equal, and is used by ==.