Enum libmacchina::traits::ReadoutError [−][src]
Expand description
This enum contains possible error types when doing sensor & variable readouts.
Variants
Expand description
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)
Expand description
A readout for a metric might be available, but fails due to missing dependencies or other unsatisfied requirements.
Warning(String)
Expand description
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 Clone for ReadoutError
[src]fn clone(&self) -> ReadoutError
[src]
fn clone(&self) -> ReadoutError
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ReadoutError
[src]
impl Debug for ReadoutError
[src]impl From<&'_ ReadoutError> for ReadoutError
[src]
impl From<&'_ ReadoutError> for ReadoutError
[src]fn from(r: &ReadoutError) -> Self
[src]
fn from(r: &ReadoutError) -> Self
[src]Performs the conversion.
impl From<SysctlError> for ReadoutError
[src]
impl From<SysctlError> for ReadoutError
[src]fn from(e: SysctlError) -> Self
[src]
fn from(e: SysctlError) -> Self
[src]Performs the conversion.
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more