pub enum ParseTspError {
IoError(Error),
MissingEntry(String),
InvalidEntry(String),
InvalidInput {
key: String,
val: String,
},
Other(&'static str),
}
Expand description
An enum for errors that might occur during parsing.
Variants§
IoError(Error)
An error due to I/O operations.
MissingEntry(String)
A required entry is missing.
InvalidEntry(String)
A line contains unrecognised keywords.
InvalidInput
An entry contains invalid inputs.
Other(&'static str)
Any I/O or parsing errors that are not part of this list.
Trait Implementations§
Source§impl Debug for ParseTspError
impl Debug for ParseTspError
Source§impl Display for ParseTspError
impl Display for ParseTspError
Auto Trait Implementations§
impl Freeze for ParseTspError
impl !RefUnwindSafe for ParseTspError
impl Send for ParseTspError
impl Sync for ParseTspError
impl Unpin for ParseTspError
impl !UnwindSafe for ParseTspError
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