use many_cpus::HardwareInfo;
#[cfg_attr(test, mockall::automock)]
pub(crate) trait HardwareInfoClient {
fn max_memory_region_count(&self) -> usize;
}
#[derive(Debug)]
pub(crate) struct HardwareInfoClientImpl;
impl HardwareInfoClient for HardwareInfoClientImpl {
#[cfg_attr(test, mutants::skip)] fn max_memory_region_count(&self) -> usize {
HardwareInfo::max_memory_region_count()
}
}