pub enum TomlError {
FileError {
path: String,
io_error: Error,
},
ParseError {
path: String,
toml_error: Error,
},
}Available on crate feature
toml only.Expand description
Returned when read_toml_from_file() fails.
Variants§
FileError
There was an error reading the file from the filesystem.
ParseError
There was an error parsing the file content as toml.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TomlError
impl !RefUnwindSafe for TomlError
impl Send for TomlError
impl Sync for TomlError
impl Unpin for TomlError
impl !UnwindSafe for TomlError
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