[][src]Struct mac_sys_info::structs::cache_info::CacheInfo

pub struct CacheInfo { /* fields omitted */ }

Implementations

impl CacheInfo[src]

pub fn new(sysinfo: &BTreeMap<String, String>) -> Result<Self, MacSysInfoError>[src]

pub fn l1i_cache_size(&self) -> usize[src]

Size of L1 instruction cache in byte.

pub fn l1d_cache_size(&self) -> usize[src]

Size of L1 data cache in byte.

pub fn l2_cache_size(&self) -> usize[src]

Size of L2 in byte.

pub fn l3_cache_size(&self) -> usize[src]

Size of L2 in byte.

pub fn l1i_cache_size_kb(&self) -> f64[src]

Size of L1 instruction cache in kibibyte.

pub fn l1d_cache_size_kb(&self) -> f64[src]

Size of L1 data cache in kibibyte.

pub fn l2_cache_size_kb(&self) -> f64[src]

Size of L2 cache in kibibyte.

pub fn l3_cache_size_kb(&self) -> f64[src]

Size of L3 cache in kibibyte.

Trait Implementations

impl Debug for CacheInfo[src]

impl Display for CacheInfo[src]

impl Serialize for CacheInfo[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> ToString for T where
    T: Display + ?Sized
[src]

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.