pub struct CpuInfo {
pub model: String,
pub cores: usize,
pub threads: usize,
pub frequency_mhz: u64,
pub cache_l1: String,
pub cache_l2: String,
pub cache_l3: String,
}Expand description
CPU details
Fields§
§model: StringCPU model name
cores: usizeNumber of physical cores
threads: usizeNumber of logical threads
frequency_mhz: u64Base frequency in MHz
cache_l1: StringL1 cache size
cache_l2: StringL2 cache size
cache_l3: StringL3 cache size
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CpuInfo
impl<'de> Deserialize<'de> for CpuInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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