Enum tabin_plugins::procfs::ProcFsError[][src]

pub enum ProcFsError {
    Io(Error),
    InsufficientData(String),
    InvalidFloat(ParseFloatError),
    InvalidInt(ParseIntError),
    LoadProcsError(LoadProcsError),
    ParseStatError(ParseStatError),
    ParseStateError(ParseStateError),
}

ProcFs errors

Every error from in this module can be converted into a ProcFsError

Variants

Io(Error)

Errors originating in IO

InsufficientData(String)

Error pulling all required data out of procfs

InvalidFloat(ParseFloatError)

Happens when we try to parse a float from something in procfs

InvalidInt(ParseIntError)

Happens when we try to parse an int from something in procfs

LoadProcsError(LoadProcsError)

When we receive an error loading an individual proc, we get this

ParseStatError(ParseStatError)

Happens when we try to parse a line from /proc//stat and got an error

ParseStateError(ParseStateError)

Happens when we get an invalid process state

Trait Implementations

impl Debug for ProcFsError[src]

impl Display for ProcFsError[src]

impl From<Error> for ProcFsError[src]

impl From<LoadProcsError> for ProcFsError[src]

impl From<ParseFloatError> for ProcFsError[src]

impl From<ParseIntError> for ProcFsError[src]

impl From<ParseStatError> for ProcFsError[src]

impl From<ParseStateError> for ProcFsError[src]

impl From<String> for ProcFsError[src]

Auto Trait Implementations

impl !RefUnwindSafe for ProcFsError

impl Send for ProcFsError

impl Sync for ProcFsError

impl Unpin for ProcFsError

impl !UnwindSafe for ProcFsError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.