Enum procfs::ProcError [−][src]
The various error conditions in the procfs crate.
Most of the variants have an Option<PathBuf>
component. If the error root cause was related
to some operation on a file, the path of this file will be stored in this component.
Variants
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.
This might mean that a procfs file has incomplete contents.
If you encounter this error, consider retrying the operation.
Any other IO error (rare).
Other(String)
Any other non-IO error (very rare).
InternalError(InternalError)
This error indicates that some unexpected error occurred. This is a bug. The inner InternalError struct will contain some more info.
If you ever encounter this error, consider it a bug in the procfs crate and please report it on github.
Trait Implementations
impl Debug for ProcError
[src]
impl Display for ProcError
[src]
impl Error for ProcError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<&'static str> for ProcError
[src]
impl From<Error> for ProcError
[src]
impl From<ParseIntError> for ProcError
[src]
fn from(val: ParseIntError) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ProcError
impl Send for ProcError
impl Sync for ProcError
impl Unpin for ProcError
impl !UnwindSafe for ProcError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,