pub struct CpuCore {
pub core_id: usize,
pub physical_id: usize,
pub numa_node: usize,
pub state: CoreState,
pub current_frequency: f64,
pub available_frequencies: Vec<f64>,
pub governor: String,
pub utilization: f64,
pub temperature: Option<f64>,
}Expand description
Individual CPU core
Fields§
§core_id: usizeCore ID
physical_id: usizePhysical core ID
numa_node: usizeNUMA node
state: CoreStateCore state
current_frequency: f64Current frequency
available_frequencies: Vec<f64>Available frequencies
governor: StringCurrent governor
utilization: f64Core utilization
temperature: Option<f64>Temperature
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CpuCore
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more