Struct raw_cpuid::ProcessorSerial
source · [−]pub struct ProcessorSerial { /* private fields */ }
Expand description
Processor Serial Number (LEAF=0x3).
Deprecated
Processor serial number (PSN) is not supported in the Pentium 4 processor or later. On all models, use the PSN flag (returned using CPUID) to check for PSN support before accessing the feature.
Platforms
❌ AMD ✅ Intel
Implementations
sourceimpl ProcessorSerial
impl ProcessorSerial
sourcepub fn serial_lower(&self) -> u32
pub fn serial_lower(&self) -> u32
Bits 00-31 of 96 bit processor serial number.
(Available in Pentium III processor only; otherwise, the value in this register is reserved.)
sourcepub fn serial_middle(&self) -> u32
pub fn serial_middle(&self) -> u32
Bits 32-63 of 96 bit processor serial number.
(Available in Pentium III processor only; otherwise, the value in this register is reserved.)
sourcepub fn serial_upper(&self) -> u32
pub fn serial_upper(&self) -> u32
Bits 64-96 of 96 bit processor serial number.
sourcepub fn serial(&self) -> u64
pub fn serial(&self) -> u64
Combination of bits 00-31 and 32-63 of 96 bit processor serial number.
sourcepub fn serial_all(&self) -> u128
pub fn serial_all(&self) -> u128
96 bit processor serial number.
Trait Implementations
sourceimpl Debug for ProcessorSerial
impl Debug for ProcessorSerial
sourceimpl PartialEq<ProcessorSerial> for ProcessorSerial
impl PartialEq<ProcessorSerial> for ProcessorSerial
sourcefn eq(&self, other: &ProcessorSerial) -> bool
fn eq(&self, other: &ProcessorSerial) -> bool
impl Eq for ProcessorSerial
impl StructuralEq for ProcessorSerial
impl StructuralPartialEq for ProcessorSerial
Auto Trait Implementations
impl RefUnwindSafe for ProcessorSerial
impl Send for ProcessorSerial
impl Sync for ProcessorSerial
impl Unpin for ProcessorSerial
impl UnwindSafe for ProcessorSerial
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more