pub enum ProcfsError {
NotInitialized,
Procfs(ProcError),
Io(Error),
JoinError(JoinError),
MutexPoisoned,
}Expand description
Errors that can occur while reading metrics from /proc.
Variants§
NotInitialized
The source was used before [crate::Procfs::init] was called.
Procfs(ProcError)
An error from the procfs crate (e.g., process not found, parse failure).
Io(Error)
An I/O error reading from /proc directly (e.g., /proc/{pid}/task/{tid}/children).
JoinError(JoinError)
An error occured while joining the polling task.
MutexPoisoned
Trait Implementations§
Source§impl Debug for ProcfsError
impl Debug for ProcfsError
Source§impl Display for ProcfsError
impl Display for ProcfsError
Source§impl Error for ProcfsError
impl Error for ProcfsError
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 ProcfsError
impl From<Error> for ProcfsError
Source§impl From<JoinError> for ProcfsError
impl From<JoinError> for ProcfsError
Auto Trait Implementations§
impl !RefUnwindSafe for ProcfsError
impl !UnwindSafe for ProcfsError
impl Freeze for ProcfsError
impl Send for ProcfsError
impl Sync for ProcfsError
impl Unpin for ProcfsError
impl UnsafeUnpin for ProcfsError
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