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

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

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.

Tuple Fields of Other

0: String
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.

Tuple Fields of Warning

0: String

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.