pub enum WinInfFileError {
FileDoNotExist,
FileOpenError(Error),
FileReadError,
ReadLineError(LineReaderError),
SectionParseError(SectionReaderError),
}Expand description
Errors that can occur while parsing a Windows INF file
Variants§
FileDoNotExist
The specified file does not exist
FileOpenError(Error)
Failed to open the file
FileReadError
Failed to read the file contents
ReadLineError(LineReaderError)
Failed to read a line from the file
SectionParseError(SectionReaderError)
Failed to parse a section in the file
Trait Implementations§
Source§impl Debug for WinInfFileError
impl Debug for WinInfFileError
Source§impl Display for WinInfFileError
impl Display for WinInfFileError
Source§impl Error for WinInfFileError
impl Error for WinInfFileError
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<Error> for WinInfFileError
impl From<Error> for WinInfFileError
Source§impl From<LineReaderError> for WinInfFileError
impl From<LineReaderError> for WinInfFileError
Source§fn from(source: LineReaderError) -> Self
fn from(source: LineReaderError) -> Self
Converts to this type from the input type.
Source§impl From<SectionReaderError> for WinInfFileError
impl From<SectionReaderError> for WinInfFileError
Source§fn from(source: SectionReaderError) -> Self
fn from(source: SectionReaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WinInfFileError
impl !RefUnwindSafe for WinInfFileError
impl Send for WinInfFileError
impl Sync for WinInfFileError
impl Unpin for WinInfFileError
impl !UnwindSafe for WinInfFileError
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