[][src]Struct heim::cpu::CpuFrequency

pub struct CpuFrequency(_);

System CPU frequency.

Methods

impl CpuFrequency[src]

pub fn current(
    &self
) -> Quantity<dyn Dimension<I = Z0, L = Z0, N = Z0, M = Z0, J = Z0, Th = Z0, Kind = dyn Kind + 'static, T = NInt<UInt<UTerm, B1>>> + 'static, dyn Units<u64, length = meter, amount_of_substance = mole, thermodynamic_temperature = kelvin, time = second, luminous_intensity = candela, mass = kilogram, electric_current = ampere> + 'static, u64>
[src]

Current CPU frequency.

Compatibility

On Linux it returns the real-time value, on all other platforms it represents the nominal "fixed" value.

pub fn min(
    &self
) -> Option<Quantity<dyn Dimension<I = Z0, L = Z0, N = Z0, M = Z0, J = Z0, Th = Z0, Kind = dyn Kind + 'static, T = NInt<UInt<UTerm, B1>>> + 'static, dyn Units<u64, length = meter, amount_of_substance = mole, thermodynamic_temperature = kelvin, time = second, luminous_intensity = candela, mass = kilogram, electric_current = ampere> + 'static, u64>>
[src]

Minimal CPU frequency.

Returns

Returns None if value can't be determined.

pub fn max(
    &self
) -> Option<Quantity<dyn Dimension<I = Z0, L = Z0, N = Z0, M = Z0, J = Z0, Th = Z0, Kind = dyn Kind + 'static, T = NInt<UInt<UTerm, B1>>> + 'static, dyn Units<u64, length = meter, amount_of_substance = mole, thermodynamic_temperature = kelvin, time = second, luminous_intensity = candela, mass = kilogram, electric_current = ampere> + 'static, u64>>
[src]

Maximal CPU frequency.

Returns

Returns None if value can't be determined.

Trait Implementations

impl Debug for CpuFrequency[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for T[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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self