pub struct Processor {
pub smt_id: u32,
pub core: Arc<Core>,
pub cluster: Arc<Cluster>,
pub package: Arc<Package>,
pub linux_id: Option<i32>,
pub windows_group_id: Option<u16>,
pub windows_processor_id: Option<u16>,
pub apic_id: Option<u32>,
pub cache: CacheInfo,
}
Fields§
§smt_id: u32
SMT (hyperthread) ID within a core
core: Arc<Core>
Core containing this logical processor
cluster: Arc<Cluster>
Cluster of cores containing this logical processor
package: Arc<Package>
Physical package containing this logical processor
linux_id: Option<i32>
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
windows_group_id: Option<u16>
Windows-specific ID for the group containing the logical processor.
windows_processor_id: Option<u16>
Windows-specific ID of the logical processor within its group:
- Bit <windows_processor_id> in the KAFFINITY mask identifies this logical processor within its group.
apic_id: Option<u32>
APIC ID (unique x86-specific ID of the logical processor)
cache: CacheInfo
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Processor
impl<'de> Deserialize<'de> for Processor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Processor
impl RefUnwindSafe for Processor
impl Send for Processor
impl Sync for Processor
impl Unpin for Processor
impl UnwindSafe for Processor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more