Enum libmacchina::traits::ReadoutError [−][src]
This enum contains possible error types when doing sensor & variable readouts.
Variants
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]
fn clone(&self) -> ReadoutError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ReadoutError
[src]
impl From<&'_ ReadoutError> for ReadoutError
[src]
fn from(r: &ReadoutError) -> Self
[src]
impl From<Error> for ReadoutError
[src]
impl From<Error> for ReadoutError
[src]
impl From<SysctlError> for ReadoutError
[src]
fn from(e: SysctlError) -> Self
[src]
impl ToString for ReadoutError
[src]
Auto Trait Implementations
impl RefUnwindSafe for ReadoutError
impl Send for ReadoutError
impl Sync for ReadoutError
impl Unpin for ReadoutError
impl UnwindSafe for ReadoutError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,