pub enum ProcError {
PermissionDenied,
NotFound,
Io(Error),
Other(String),
}
Expand description
Error type for most procfs functions
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.
This might mean that the process no longer exists, or that your kernel doesn’t support the
feature you are trying to use.
Any other IO error (rare).
Any other non-IO error (very rare).
Formats the value using the given formatter.
Read more
Converts to this type from the input type.
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.