pub trait PoolCapacityProvider {
// Required methods
fn pool_cores() -> u32;
fn ensure_pool_cores(cores: u32);
}Expand description
Type for getting information about the on-demand pool capacity.
Required Methods§
Sourcefn pool_cores() -> u32
fn pool_cores() -> u32
Returns how many cores are dedicated to the on-demand pool.
Sourcefn ensure_pool_cores(cores: u32)
fn ensure_pool_cores(cores: u32)
Make sure that Self::pool_cores returns at least cores.
Used to set up the benchmarks, which need a non-empty pool to place orders in.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.