[][src]Struct lpfs::proc::Processor

pub struct Processor { /* fields omitted */ }

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.

impl PartialEq<Processor> for Processor[src]

impl StructuralPartialEq for Processor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.