pub fn physical_thread_capacity() -> Result<usize, ScanError>Expand description
Returns the physical performance-core capacity used to cap scan workers.
On Darwin this is hw.perflevel0.physicalcpu. Other targets use
std::thread::available_parallelism as the documented explicit default
because those targets do not expose Darwin performance-level topology.
ยงErrors
Returns ScanError::CpuCount when the operating system cannot report a
positive count.