pub enum ProcSysParserError {
IteratorItemError {
item: String,
},
FindItemError {
item: String,
},
ParseToFloatError(ParseFloatError),
ParseToIntegerError(ParseIntError),
FileReadError {
file: String,
error: Error,
},
DirectoryReadError {
directory: String,
error: Error,
},
RegexCompileError {
regex: String,
},
}
Variants§
IteratorItemError
This error shouldn’t happen, unless the source data has changed
FindItemError
This error shouldn’t happen, unless the source data has changed
ParseToFloatError(ParseFloatError)
This error means a string that is picked up and expected to be a float cannot be parsed into a float.
ParseToIntegerError(ParseIntError)
This error means a string that is picked up and expected to be an integer cannot be parsed into an integer.
FileReadError
This error means the file to be read cannot be found or is unreadable.
DirectoryReadError
This error means the file to be read cannot be found or is unreadable.
RegexCompileError
Trait Implementations§
Source§impl Debug for ProcSysParserError
impl Debug for ProcSysParserError
Source§impl Display for ProcSysParserError
impl Display for ProcSysParserError
Source§impl Error for ProcSysParserError
impl Error for ProcSysParserError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ParseFloatError> for ProcSysParserError
impl From<ParseFloatError> for ProcSysParserError
Source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for ProcSysParserError
impl From<ParseIntError> for ProcSysParserError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProcSysParserError
impl !RefUnwindSafe for ProcSysParserError
impl Send for ProcSysParserError
impl Sync for ProcSysParserError
impl Unpin for ProcSysParserError
impl !UnwindSafe for ProcSysParserError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more