pub struct PoolConfig {
pub max_instances: usize,
pub warm_count: usize,
}Expand description
Per-pool configuration.
Fields§
§max_instances: usizeMaximum concurrent live instances.
Bounds the wasmtime memory footprint. Default 4 matches the
Capability::ConcurrentInstances default in the proposal. Acts
as a concurrency semaphore: at most this many instances may be
in flight at once.
warm_count: usizeRetained for API compatibility; no longer pre-warms anything.
Instances are now built fresh per InstancePool::acquire (so a
reused store can’t leak guest state across calls), so there is no
warm pool to populate. The field stays so existing
PoolConfig { max_instances, warm_count } construction sites keep
compiling and downstream config surfaces keep their shape.
Trait Implementations§
Source§impl Clone for PoolConfig
impl Clone for PoolConfig
Source§fn clone(&self) -> PoolConfig
fn clone(&self) -> PoolConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PoolConfig
impl Debug for PoolConfig
Auto Trait Implementations§
impl Freeze for PoolConfig
impl RefUnwindSafe for PoolConfig
impl Send for PoolConfig
impl Sync for PoolConfig
impl Unpin for PoolConfig
impl UnsafeUnpin for PoolConfig
impl UnwindSafe for PoolConfig
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more