pub enum RatchetTomlEditError {
Read {
path: String,
source: Error,
},
Parse {
path: String,
source: TomlError,
},
Malformed(String),
Write {
path: String,
source: Error,
},
}Expand description
Error returned while applying ratchet edits to a TOML config file.
Variants§
Read
The config file could not be read.
Parse
The config file could not be parsed as editable TOML.
Malformed(String)
The target TOML structure was malformed.
Write
The updated config file could not be written.
Trait Implementations§
Source§impl Debug for RatchetTomlEditError
impl Debug for RatchetTomlEditError
Source§impl Display for RatchetTomlEditError
impl Display for RatchetTomlEditError
Source§impl Error for RatchetTomlEditError
impl Error for RatchetTomlEditError
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()
Auto Trait Implementations§
impl Freeze for RatchetTomlEditError
impl !RefUnwindSafe for RatchetTomlEditError
impl Send for RatchetTomlEditError
impl Sync for RatchetTomlEditError
impl Unpin for RatchetTomlEditError
impl UnsafeUnpin for RatchetTomlEditError
impl !UnwindSafe for RatchetTomlEditError
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