pub enum ProcStatusError {
Io(Error),
ParseInt(ParseIntError),
NoColon(String),
EntryNotFound(String),
NotInKib,
}
Expand description
any error which can be raised in this crate
If the OS isn’t compatible (ie it doesn’t have a /proc pseudo file system), you’ll get a ProcStatusError::Io.
Variants§
Trait Implementations§
Source§impl Debug for ProcStatusError
impl Debug for ProcStatusError
Source§impl Display for ProcStatusError
impl Display for ProcStatusError
Source§impl Error for ProcStatusError
impl Error for ProcStatusError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for ProcStatusError
impl From<Error> for ProcStatusError
Source§impl From<ParseIntError> for ProcStatusError
impl From<ParseIntError> for ProcStatusError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProcStatusError
impl !RefUnwindSafe for ProcStatusError
impl Send for ProcStatusError
impl Sync for ProcStatusError
impl Unpin for ProcStatusError
impl !UnwindSafe for ProcStatusError
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