Enum procfs::ProcError

source ·
pub enum ProcError {
    PermissionDenied,
    NotFound,
    Io(Error),
    Other(String),
}
Expand description

Error type for most procfs functions

Variants§

§

PermissionDenied

A standard permission denied error.

This will be a common error, since some files in the procfs filesystem are only readable by the root user.

§

NotFound

This might mean that the process no longer exists, or that your kernel doesn’t support the feature you are trying to use.

§

Io(Error)

Any other IO error (rare).

§

Other(String)

Any other non-IO error (very rare).

Trait Implementations§

Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.