Enum conciliator::edit::EditError
source · pub enum EditError<E: Error> {
Serialize(E),
Io(Error),
}
Expand description
Errors encountered during Claw::edit
Errors can occur at several points in the Claw::edit
function, and most of them are std::io::Error
from creating, reading, and writing files, but also from spawning the editor process.
Used by TomlEditor
, which can encounter a toml::ser::Error
during serialization.
It is not mandatory to use this as the Error
type for Edit::Err
.
Variants§
Serialize(E)
Error encountered during serialization
Io(Error)
std::io::Error
encountered at some point
Trait Implementations§
source§impl<E: Error> Error for EditError<E>
impl<E: Error> Error for EditError<E>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<E> !RefUnwindSafe for EditError<E>
impl<E> Send for EditError<E>where
E: Send,
impl<E> Sync for EditError<E>where
E: Sync,
impl<E> Unpin for EditError<E>where
E: Unpin,
impl<E> !UnwindSafe for EditError<E>
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