#[repr(C)]
pub struct cpuinfo_processor { pub smt_id: u32, pub core: *const cpuinfo_core, pub cluster: *const cpuinfo_cluster, pub package: *const cpuinfo_package, pub linux_id: c_int, pub apic_id: u32, pub cache: cpuinfo_processor__bindgen_ty_1, }

Fields

smt_id: u32

SMT (hyperthread) ID within a core

core: *const cpuinfo_core

Core containing this logical processor

cluster: *const cpuinfo_cluster

Cluster of cores containing this logical processor

package: *const cpuinfo_package

Physical package containing this logical processor

linux_id: c_int

Linux-specific ID for the logical processor:

  • Linux kernel exposes information about this logical processor in /sys/devices/system/cpu/cpu<linux_id>/
  • Bit <linux_id> in the cpu_set_t identifies this logical processor
apic_id: u32

APIC ID (unique x86-specific ID of the logical processor)

cache: cpuinfo_processor__bindgen_ty_1

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.