many_cpus_impl 2.4.13

Implementation crate for many_cpus - do not reference directly
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::fmt::{Debug, Display};

use crate::{EfficiencyClass, MemoryRegionId, ProcessorId, RelativeSpeed};

pub(crate) trait AbstractProcessor: Clone + Debug + Display + Send {
    fn id(&self) -> ProcessorId;
    fn memory_region_id(&self) -> MemoryRegionId;
    fn efficiency_class(&self) -> EfficiencyClass;
    fn relative_speed(&self) -> RelativeSpeed;

    /// The model name of the processor, or `None` when the platform does not report one.
    fn model(&self) -> Option<&str>;
}