pub trait PoolResourceLimit {
// Required method
fn resource_limit(msg: String) -> Self;
}Expand description
Loader-error trait used by InstancePool::acquire to construct
the “pool at capacity” error.
Each loader implements this with one line:
ⓘ
impl uni_plugin_wasm_rt::PoolResourceLimit for ExtismError {
fn resource_limit(msg: String) -> Self { Self::ResourceLimit(msg) }
}Required Methods§
Sourcefn resource_limit(msg: String) -> Self
fn resource_limit(msg: String) -> Self
Construct a “resource limit exceeded” instance from a diagnostic
message. Called when the pool’s max_instances is reached.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".