Struct scaphandre::sensors::CPUCore
source · pub struct CPUCore {
pub id: u16,
pub attributes: HashMap<String, String>,
}
Expand description
CPUCore reprensents each CPU core on the host, owned by a CPUSocket. CPUCores are instanciated regardless if HyperThreading is activated on the host. Reprensents the processor field in /proc/cpuinfo.
Fields§
§id: u16
§attributes: HashMap<String, String>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for CPUCore
impl Send for CPUCore
impl Sync for CPUCore
impl Unpin for CPUCore
impl UnwindSafe for CPUCore
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more