pub enum EditorError<E: Error> {
GeneratedFile(PathBuf, GeneratedFile),
TemplateError(PathBuf, String),
FormattingUnpreservable(PathBuf, FormattingUnpreservable),
IoError(Error),
BrzError(Error),
Utf8Error(Utf8Error),
MarshallingError(E),
}Expand description
Error that can occur when editing a file.
Variants§
GeneratedFile(PathBuf, GeneratedFile)
One of the files is generated from another file, and we were unable to edit it.
TemplateError(PathBuf, String)
Error in a template file
FormattingUnpreservable(PathBuf, FormattingUnpreservable)
Unable to preserve formatting in a file.
IoError(Error)
I/O error
BrzError(Error)
Breezy error
Utf8Error(Utf8Error)
UTF-8 encoding error
MarshallingError(E)
Error parsing or marshalling file contents
Trait Implementations§
Source§impl<E: Error> Display for EditorError<E>
impl<E: Error> Display for EditorError<E>
Source§impl<E: Error> Error for EditorError<E>
impl<E: Error> Error for EditorError<E>
1.30.0 · 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<E> !Freeze for EditorError<E>
impl<E> !RefUnwindSafe for EditorError<E>
impl<E> Send for EditorError<E>where
E: Send,
impl<E> Sync for EditorError<E>where
E: Sync,
impl<E> Unpin for EditorError<E>where
E: Unpin,
impl<E> UnsafeUnpin for EditorError<E>where
E: UnsafeUnpin,
impl<E> !UnwindSafe for EditorError<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
Source§impl<E> Fail for E
impl<E> Fail for E
Source§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.