Type Alias procfs_core::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§

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.