pub struct CpuInfo {
pub id: u8,
pub online: bool,
pub is_primary: bool,
pub freq_mhz: u32,
pub load_percent: u8,
}Expand description
CPU information for SMP.
Fields§
§id: u8CPU ID (0-255).
online: boolWhether CPU is online.
is_primary: boolWhether CPU is the boot CPU.
freq_mhz: u32CPU frequency in MHz (if available).
load_percent: u8Current CPU load percentage (0-100).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CpuInfo
impl RefUnwindSafe for CpuInfo
impl Send for CpuInfo
impl Sync for CpuInfo
impl Unpin for CpuInfo
impl UnsafeUnpin for CpuInfo
impl UnwindSafe for CpuInfo
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