#[repr(C)]
pub struct cpuinfo_core { pub processor_start: u32, pub processor_count: u32, pub core_id: u32, pub cluster: *const cpuinfo_cluster, pub package: *const cpuinfo_package, pub vendor: cpuinfo_vendor, pub uarch: cpuinfo_uarch, pub cpuid: u32, pub frequency: u64, }

Fields

processor_start: u32

Index of the first logical processor on this core.

processor_count: u32

Number of logical processors on this core

core_id: u32

Core ID within a package

cluster: *const cpuinfo_cluster

Cluster containing this core

package: *const cpuinfo_package

Physical package containing this core.

vendor: cpuinfo_vendor

Vendor of the CPU microarchitecture for this core

uarch: cpuinfo_uarch

CPU microarchitecture for this core

cpuid: u32

Value of CPUID leaf 1 EAX register for this core

frequency: u64

Clock rate (non-Turbo) of the core, in Hz

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. 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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.