[−][src]Struct lpfs::proc::Processor
Each instance of this struct represent a block in /proc/cpuinfo. See (CpuInfo)[struct.CpuInfo.html].
Fields of this struct reference to proc.c.
Note: this is for x86_64, other architecture may not work.
Methods
impl Processor
[src]
pub fn processor(&self) -> &u8
[src]
pub fn vendor_id(&self) -> &String
[src]
pub fn cpu_family(&self) -> &u8
[src]
pub fn model(&self) -> &u8
[src]
pub fn model_name(&self) -> &String
[src]
pub fn stepping(&self) -> &Option<u8>
[src]
Return None if stepping
is not number or the fields doesn't appear.
In first case, it should be "unknonw", but it doesn't actually be checked.
pub fn microcode(&self) -> &Option<u32>
[src]
pub fn cpu_mhz(&self) -> &Option<f64>
[src]
pub fn cache_size(&self) -> &Option<u32>
[src]
Unit is KB(KiB).
pub fn physical_id(&self) -> &Option<u16>
[src]
pub fn siblings(&self) -> &Option<u32>
[src]
pub fn core_id(&self) -> &Option<u16>
[src]
pub fn cpu_cores(&self) -> &Option<u16>
[src]
pub fn apicid(&self) -> &Option<u16>
[src]
pub fn initial_apicid(&self) -> &Option<u16>
[src]
pub fn fdiv_bug(&self) -> &Option<bool>
[src]
pub fn f00f_bug(&self) -> &Option<bool>
[src]
pub fn coma_bug(&self) -> &Option<bool>
[src]
pub fn fpu(&self) -> &Option<bool>
[src]
always true if appears.
pub fn fpu_exception(&self) -> &Option<bool>
[src]
always true if appears.
pub fn cpuid_level(&self) -> &Option<i32>
[src]
pub fn wp(&self) -> &Option<bool>
[src]
always true if appears.
pub fn flags(&self) -> &Vec<String>
[src]
pub fn bugs(&self) -> &Vec<String>
[src]
pub fn bogomips(&self) -> &f64
[src]
pub fn tlb_size(&self) -> &Option<i32>
[src]
pub fn clflush_size(&self) -> &u16
[src]
pub fn cache_alignment(&self) -> &i32
[src]
pub fn address_sizes(&self) -> &(u8, u8)
[src]
(bits physical, bits virtual)
pub fn power_management(&self) -> &Vec<String>
[src]
Trait Implementations
impl Clone for Processor
[src]
impl Debug for Processor
[src]
impl FromStr for Processor
[src]
type Err = ProcErr
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Processor, ProcErr>
[src]
impl PartialEq<Processor> for Processor
[src]
impl StructuralPartialEq for Processor
[src]
Auto Trait Implementations
impl RefUnwindSafe for Processor
impl Send for Processor
impl Sync for Processor
impl Unpin for Processor
impl UnwindSafe for Processor
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,