pub enum Error {
FileError(Error),
Missing(String),
Parse(usize, usize, String),
Validation(String, ValidationError),
}
Expand description
This enumeration identifies various errors that may occur when reading a TOML file.
Variants§
FileError(Error)
There was a problem accessing the file.
Missing(String)
A required item is missing, contains the ID of the missing item.
Parse(usize, usize, String)
There was an error parsing the TOML file. Contains the row, column of the error as well as the actual error message.
Validation(String, ValidationError)
There was an error validation an element inside the TOML file. Contains the ID of the item that caused the issue as well as the problem.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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