pub struct CpuInfo { /* private fields */ }Expand description
General CPU info.
Implementations§
Source§impl CpuInfo
impl CpuInfo
Sourcepub fn phys_cores(&self) -> usize
pub fn phys_cores(&self) -> usize
Getter for the field phys_cores.
Sourcepub fn logic_cores(&self) -> usize
pub fn logic_cores(&self) -> usize
Getter for the field logic_cores.
Sourcepub fn cache_info(&self) -> &CacheInfo
pub fn cache_info(&self) -> &CacheInfo
Getter for crate::structs::CacheInfo.
Sourcepub fn brand_string(&self) -> &str
pub fn brand_string(&self) -> &str
Getter for the field brand_string.
Sourcepub fn min_frequency(&self) -> usize
pub fn min_frequency(&self) -> usize
Getter for the field min_frequency.
Sourcepub fn max_frequency(&self) -> usize
pub fn max_frequency(&self) -> usize
Getter for the field max_frequency.
Sourcepub fn frequency_ghz(&self) -> f64
pub fn frequency_ghz(&self) -> f64
Getter for the field frequency in Ghz.
Sourcepub fn min_frequency_ghz(&self) -> f64
pub fn min_frequency_ghz(&self) -> f64
Getter for the field min_frequency in Ghz.
Sourcepub fn max_frequency_ghz(&self) -> f64
pub fn max_frequency_ghz(&self) -> f64
Getter for the field max_frequency in Ghz.
Sourcepub fn architecture(&self) -> &CpuArchitectureInfo
pub fn architecture(&self) -> &CpuArchitectureInfo
Getter for the field architecture.
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 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