pub struct DirectCpuid;Expand description
A [CpuidReader] that issues a CPUID instruction on each read.
Trait Implementations§
Source§impl Clone for DirectCpuid
impl Clone for DirectCpuid
Source§fn clone(&self) -> DirectCpuid
fn clone(&self) -> DirectCpuid
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DirectCpuid
Source§impl Cpuid for DirectCpuid
impl Cpuid for DirectCpuid
Source§fn read_raw(&self, leaf: u32, subleaf: u32) -> CpuidRawResult
fn read_raw(&self, leaf: u32, subleaf: u32) -> CpuidRawResult
Returns the CPUID values for a given leaf and subleaf.
Source§fn supports<const LEAF: u32, const SUBLEAF: u32, const REG: u8, Layout: LayoutOver<u32>>(
&self,
_cpuid: CpuidValue<LEAF, SUBLEAF, REG, Layout>,
) -> bool
fn supports<const LEAF: u32, const SUBLEAF: u32, const REG: u8, Layout: LayoutOver<u32>>( &self, _cpuid: CpuidValue<LEAF, SUBLEAF, REG, Layout>, ) -> bool
Whether a CPUID leaf is supported, as associated with the provided
Cpuid marker.Source§fn read<const LEAF: u32, const SUBLEAF: u32, const REG: u8, Layout: LayoutOver<u32>>(
&self,
_value: CpuidValue<LEAF, SUBLEAF, REG, Layout>,
) -> Layout
fn read<const LEAF: u32, const SUBLEAF: u32, const REG: u8, Layout: LayoutOver<u32>>( &self, _value: CpuidValue<LEAF, SUBLEAF, REG, Layout>, ) -> Layout
Reads the particular CPUID value.
Source§fn try_read<const LEAF: u32, const SUBLEAF: u32, const REG: u8, Layout: LayoutOver<u32>>(
&self,
value: CpuidValue<LEAF, SUBLEAF, REG, Layout>,
) -> Option<Layout>
fn try_read<const LEAF: u32, const SUBLEAF: u32, const REG: u8, Layout: LayoutOver<u32>>( &self, value: CpuidValue<LEAF, SUBLEAF, REG, Layout>, ) -> Option<Layout>
Reads the particular CPUID value if supported, returning None
otherwise.
Auto Trait Implementations§
impl Freeze for DirectCpuid
impl RefUnwindSafe for DirectCpuid
impl Send for DirectCpuid
impl Sync for DirectCpuid
impl Unpin for DirectCpuid
impl UnsafeUnpin for DirectCpuid
impl UnwindSafe for DirectCpuid
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)