pub struct CpuId { /* private fields */ }
Expand description
Main type used to query for information about the CPU we’re running on.
Implementations
sourceimpl CpuId
impl CpuId
sourcepub fn get_vendor_info(&self) -> Option<VendorInfo>
pub fn get_vendor_info(&self) -> Option<VendorInfo>
Return information about vendor. This is typically a ASCII readable string such as GenuineIntel for Intel CPUs or AuthenticAMD for AMD CPUs.
sourcepub fn get_feature_info(&self) -> Option<FeatureInfo>
pub fn get_feature_info(&self) -> Option<FeatureInfo>
Query a set of features that are available on this CPU.
sourcepub fn get_cache_info(&self) -> Option<CacheInfoIter>
pub fn get_cache_info(&self) -> Option<CacheInfoIter>
Query basic information about caches. This will just return an index
into a static table of cache descriptions (see CACHE_INFO_TABLE
).
sourcepub fn get_processor_serial(&self) -> Option<ProcessorSerial>
pub fn get_processor_serial(&self) -> Option<ProcessorSerial>
Retrieve serial number of processor.
sourcepub fn get_cache_parameters(&self) -> Option<CacheParametersIter>
pub fn get_cache_parameters(&self) -> Option<CacheParametersIter>
Retrieve more elaborate information about caches (as opposed
to get_cache_info
). This will tell us about associativity,
set size, line size etc. for each level of the cache hierarchy.
sourcepub fn get_monitor_mwait_info(&self) -> Option<MonitorMwaitInfo>
pub fn get_monitor_mwait_info(&self) -> Option<MonitorMwaitInfo>
Information about how monitor/mwait works on this CPU.
sourcepub fn get_thermal_power_info(&self) -> Option<ThermalPowerInfo>
pub fn get_thermal_power_info(&self) -> Option<ThermalPowerInfo>
Query information about thermal and power management features of the CPU.
sourcepub fn get_extended_feature_info(&self) -> Option<ExtendedFeatures>
pub fn get_extended_feature_info(&self) -> Option<ExtendedFeatures>
Find out about more features supported by this CPU.
sourcepub fn get_direct_cache_access_info(&self) -> Option<DirectCacheAccessInfo>
pub fn get_direct_cache_access_info(&self) -> Option<DirectCacheAccessInfo>
Direct cache access info.
sourcepub fn get_performance_monitoring_info(
&self
) -> Option<PerformanceMonitoringInfo>
pub fn get_performance_monitoring_info(
&self
) -> Option<PerformanceMonitoringInfo>
Info about performance monitoring (how many counters etc.).
sourcepub fn get_extended_topology_info(&self) -> Option<ExtendedTopologyIter>
pub fn get_extended_topology_info(&self) -> Option<ExtendedTopologyIter>
Information about topology (how many cores and what kind of cores).
sourcepub fn get_extended_state_info(&self) -> Option<ExtendedStateInfo>
pub fn get_extended_state_info(&self) -> Option<ExtendedStateInfo>
Information for saving/restoring extended register state.
sourcepub fn get_rdt_monitoring_info(&self) -> Option<RdtMonitoringInfo>
pub fn get_rdt_monitoring_info(&self) -> Option<RdtMonitoringInfo>
Quality of service informations.
sourcepub fn get_rdt_allocation_info(&self) -> Option<RdtAllocationInfo>
pub fn get_rdt_allocation_info(&self) -> Option<RdtAllocationInfo>
Quality of service enforcement information.
pub fn get_sgx_info(&self) -> Option<SgxInfo>
sourcepub fn get_processor_trace_info(&self) -> Option<ProcessorTraceInfo>
pub fn get_processor_trace_info(&self) -> Option<ProcessorTraceInfo>
Intel Processor Trace Enumeration Information.
sourcepub fn get_tsc_info(&self) -> Option<TscInfo>
pub fn get_tsc_info(&self) -> Option<TscInfo>
Time Stamp Counter/Core Crystal Clock Information.
sourcepub fn get_processor_frequency_info(&self) -> Option<ProcessorFrequencyInfo>
pub fn get_processor_frequency_info(&self) -> Option<ProcessorFrequencyInfo>
Processor Frequency Information.
pub fn deterministic_address_translation_info(&self) -> Option<DatIter>
pub fn get_soc_vendor_info(&self) -> Option<SoCVendorInfo>
pub fn get_hypervisor_info(&self) -> Option<HypervisorInfo>
sourcepub fn get_extended_function_info(&self) -> Option<ExtendedFunctionInfo>
pub fn get_extended_function_info(&self) -> Option<ExtendedFunctionInfo>
Extended functionality of CPU described here (including more supported features). This also contains a more detailed CPU model identifier.
pub fn get_memory_encryption_info(&self) -> Option<MemoryEncryptionInfo>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CpuId
impl Send for CpuId
impl Sync for CpuId
impl Unpin for CpuId
impl UnwindSafe for CpuId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more