Enum libmacchina::traits::ReadoutError
source · pub enum ReadoutError {
MetricNotAvailable,
NotImplemented,
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.
NotImplemented
The default error for any readout that is not implemented by a particular platform.
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§
source§impl Clone for ReadoutError
impl Clone for ReadoutError
source§fn clone(&self) -> ReadoutError
fn clone(&self) -> ReadoutError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ReadoutError
impl Debug for ReadoutError
source§impl From<&ReadoutError> for ReadoutError
impl From<&ReadoutError> for ReadoutError
source§fn from(r: &ReadoutError) -> Self
fn from(r: &ReadoutError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ReadoutError
impl From<Error> for ReadoutError
source§impl From<WMIError> for ReadoutError
impl From<WMIError> for ReadoutError
Auto Trait Implementations§
impl Freeze for ReadoutError
impl RefUnwindSafe for ReadoutError
impl Send for ReadoutError
impl Sync for ReadoutError
impl Unpin for ReadoutError
impl UnwindSafe for ReadoutError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more