Struct raw_cpuid::CpuId

source ·
pub struct CpuId { /* private fields */ }
Expand description

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

Implementations§

Return new CPUID struct.

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

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

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

Retrieve serial number of processor.

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.

Information about how monitor/mwait works on this CPU.

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

Find out about more features supported by this CPU.

Direct cache access info.

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

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

Information for saving/restoring extended register state.

Quality of service informations.

Quality of service enforcement information.

Intel Processor Trace Enumeration Information.

Time Stamp Counter/Core Crystal Clock Information.

Processor Frequency Information.

Extended functionality of CPU described here (including more supported features). This also contains a more detailed CPU model identifier.

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.