[][src]Struct raw_cpuid::CpuId

pub struct CpuId { /* fields omitted */ }

Main type used to query for information about the CPU we're running on.

Implementations

impl CpuId[src]

pub fn new() -> CpuId[src]

Return new CPUID struct.

pub fn get_vendor_info(&self) -> Option<VendorInfo>[src]

Return information about vendor. This is typically a ASCII readable string such as GenuineIntel for Intel CPUs or AuthenticAMD for AMD CPUs.

pub fn get_feature_info(&self) -> Option<FeatureInfo>[src]

Query a set of features that are available on this CPU.

pub fn get_cache_info(&self) -> Option<CacheInfoIter>[src]

Query basic information about caches. This will just return an index into a static table of cache descriptions (see CACHE_INFO_TABLE).

pub fn get_processor_serial(&self) -> Option<ProcessorSerial>[src]

Retrieve serial number of processor.

pub fn get_cache_parameters(&self) -> Option<CacheParametersIter>[src]

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.

pub fn get_monitor_mwait_info(&self) -> Option<MonitorMwaitInfo>[src]

Information about how monitor/mwait works on this CPU.

pub fn get_thermal_power_info(&self) -> Option<ThermalPowerInfo>[src]

Query information about thermal and power management features of the CPU.

pub fn get_extended_feature_info(&self) -> Option<ExtendedFeatures>[src]

Find out about more features supported by this CPU.

pub fn get_direct_cache_access_info(&self) -> Option<DirectCacheAccessInfo>[src]

Direct cache access info.

pub fn get_performance_monitoring_info(
    &self
) -> Option<PerformanceMonitoringInfo>
[src]

Info about performance monitoring (how many counters etc.).

pub fn get_extended_topology_info(&self) -> Option<ExtendedTopologyIter>[src]

Information about topology (how many cores and what kind of cores).

pub fn get_extended_state_info(&self) -> Option<ExtendedStateInfo>[src]

Information for saving/restoring extended register state.

pub fn get_rdt_monitoring_info(&self) -> Option<RdtMonitoringInfo>[src]

Quality of service informations.

pub fn get_rdt_allocation_info(&self) -> Option<RdtAllocationInfo>[src]

Quality of service enforcement information.

pub fn get_sgx_info(&self) -> Option<SgxInfo>[src]

pub fn get_processor_trace_info(&self) -> Option<ProcessorTraceInfo>[src]

Intel Processor Trace Enumeration Information.

pub fn get_tsc_info(&self) -> Option<TscInfo>[src]

Time Stamp Counter/Core Crystal Clock Information.

pub fn get_processor_frequency_info(&self) -> Option<ProcessorFrequencyInfo>[src]

Processor Frequency Information.

pub fn deterministic_address_translation_info(&self) -> Option<DatIter>[src]

pub fn get_soc_vendor_info(&self) -> Option<SoCVendorInfo>[src]

pub fn get_hypervisor_info(&self) -> Option<HypervisorInfo>[src]

pub fn get_extended_function_info(&self) -> Option<ExtendedFunctionInfo>[src]

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>[src]

Trait Implementations

impl Debug for CpuId[src]

impl Default for CpuId[src]

Auto Trait Implementations

impl Send for CpuId

impl Sync for CpuId

impl Unpin for CpuId

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.