pub enum ProcessingError {
Traversal {
src: PathBuf,
cause: TraversalError<RenderingError>,
},
DirectoryCreation {
dest: PathBuf,
cause: Error,
},
FileCopy {
src: PathBuf,
dest: PathBuf,
cause: Error,
},
TemplateRead {
src: PathBuf,
cause: Error,
},
TemplateRender {
src: PathBuf,
cause: RenderingError,
},
TemplateWrite {
src: PathBuf,
dest: PathBuf,
cause: Error,
},
}
Expand description
An error encountered when processing an Action
.
Variants§
Traversal
Failed to traverse files.
DirectoryCreation
Failed to create directory.
FileCopy
Failed to copy file.
TemplateRead
Failed to open or read input file.
TemplateRender
Failed to render template.
TemplateWrite
Failed to create or write output file.
Trait Implementations§
source§impl Debug for ProcessingError
impl Debug for ProcessingError
source§impl Display for ProcessingError
impl Display for ProcessingError
source§impl Error for ProcessingError
impl Error for ProcessingError
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 ProcessingError
impl !RefUnwindSafe for ProcessingError
impl Send for ProcessingError
impl Sync for ProcessingError
impl Unpin for ProcessingError
impl !UnwindSafe for ProcessingError
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