#[repr(packed(1))]pub struct ProcessorInfo {Show 23 fields
pub socket_designation: u8,
pub processor_kind: u8,
pub processor_family: u8,
pub processor_manufacturer: u8,
pub processor_id: u64,
pub processor_version: u8,
pub voltage: u8,
pub external_clock: u16,
pub max_speed: u16,
pub current_speed: u16,
pub status: u8,
pub processor_upgrade: u8,
pub l1_cache_handle: u16,
pub l2_cache_handle: u16,
pub l3_cache_handle: u16,
pub serial_number: u8,
pub asset_tag: u8,
pub part_number: u8,
pub core_count: u8,
pub core_enabled: u8,
pub thread_count: u8,
pub processor_characteristics: u16,
pub processor_family_2: u16,
}
Fields§
§socket_designation: u8
§processor_kind: u8
§processor_family: u8
§processor_manufacturer: u8
§processor_id: u64
§processor_version: u8
§voltage: u8
§external_clock: u16
§max_speed: u16
§current_speed: u16
§status: u8
§processor_upgrade: u8
§l1_cache_handle: u16
§l2_cache_handle: u16
§l3_cache_handle: u16
§serial_number: u8
§asset_tag: u8
§part_number: u8
§core_count: u8
§core_enabled: u8
§thread_count: u8
§processor_characteristics: u16
§processor_family_2: u16
Trait Implementations§
Source§impl Clone for ProcessorInfo
impl Clone for ProcessorInfo
Source§fn clone(&self) -> ProcessorInfo
fn clone(&self) -> ProcessorInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProcessorInfo
impl Debug for ProcessorInfo
Source§impl Default for ProcessorInfo
impl Default for ProcessorInfo
Source§fn default() -> ProcessorInfo
fn default() -> ProcessorInfo
Returns the “default value” for a type. Read more
Source§impl Plain for ProcessorInfo
impl Plain for ProcessorInfo
fn from_bytes(bytes: &[u8]) -> Result<&Self, Error>where
Self: Sized,
fn slice_from_bytes(bytes: &[u8]) -> Result<&[Self], Error>where
Self: Sized,
fn slice_from_bytes_len(bytes: &[u8], len: usize) -> Result<&[Self], Error>where
Self: Sized,
fn from_mut_bytes(bytes: &mut [u8]) -> Result<&mut Self, Error>where
Self: Sized,
fn slice_from_mut_bytes(bytes: &mut [u8]) -> Result<&mut [Self], Error>where
Self: Sized,
fn slice_from_mut_bytes_len(
bytes: &mut [u8],
len: usize,
) -> Result<&mut [Self], Error>where
Self: Sized,
fn copy_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
impl Copy for ProcessorInfo
Auto Trait Implementations§
impl Freeze for ProcessorInfo
impl RefUnwindSafe for ProcessorInfo
impl Send for ProcessorInfo
impl Sync for ProcessorInfo
impl Unpin for ProcessorInfo
impl UnwindSafe for ProcessorInfo
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