pub struct SimpleCPU {
pub name: String,
pub cores: u32,
pub threads: u32,
pub vendor: String,
pub ai_capable: bool,
}
Expand description
Simplified CPU information
Fields§
§name: String
CPU model name
cores: u32
Number of physical cores
threads: u32
Number of logical cores (threads)
vendor: String
Vendor (Intel, AMD, Apple, etc.)
ai_capable: bool
Supports AI acceleration features
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SimpleCPU
impl<'de> Deserialize<'de> for SimpleCPU
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 SimpleCPU
impl RefUnwindSafe for SimpleCPU
impl Send for SimpleCPU
impl Sync for SimpleCPU
impl Unpin for SimpleCPU
impl UnwindSafe for SimpleCPU
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