ProcResult

Type Alias ProcResult 

Source
pub type ProcResult<T> = Result<T, ProcError>;
Expand description

The main error type for the procfs crate.

For more info, see the ProcError type.

Aliased Type§

pub enum ProcResult<T> {
    Ok(T),
    Err(ProcError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(ProcError)

Contains the error value

Trait Implementations§

Source§

impl<T> ProcErrorExt for ProcResult<T>

Source§

fn error_path(self, path: &Path) -> Self

Add path information to the error.