Enum libmacchina::traits::ReadoutError[][src]

pub enum ReadoutError {
    MetricNotAvailable,
    Other(String),
    Warning(String),
}

This enum contains possible error types when doing sensor & variable readouts.

Variants

MetricNotAvailable

A specific metric might not be available on all systems (e. g. battery percentage on a desktop).
If you encounter this error, it means that the requested value is not available.

Other(String)

A readout for a metric might be available, but fails due to missing dependencies or other unsatisfied requirements.

Warning(String)

Getting a readout on a specific operating system might not make sense or causes some other kind of warning. This is not necessarily an error.

Trait Implementations

impl Clone for ReadoutError[src]

impl Debug for ReadoutError[src]

impl From<&'_ ReadoutError> for ReadoutError[src]

impl From<Error> for ReadoutError[src]

impl From<Error> for ReadoutError[src]

impl From<SysctlError> for ReadoutError[src]

impl ToString for ReadoutError[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.