pub enum RenderError {
Read {
path: PathBuf,
source: Error,
},
ReadCssOverride {
path: PathBuf,
source: Error,
},
CreateOutputDir {
path: PathBuf,
source: Error,
},
Write {
path: PathBuf,
source: Error,
},
}Expand description
Why a convert workflow failed, typed per failure site with the
underlying io::Error and the path it concerns, so callers keep printing
their own messages instead of the library doing it for them.
Variants§
Read
Reading the Markdown input file failed.
ReadCssOverride
Reading the --css override file failed.
CreateOutputDir
Creating the output file’s parent directory failed.
Write
Writing the rendered HTML file failed.
Trait Implementations§
Source§impl Debug for RenderError
impl Debug for RenderError
Source§impl Display for RenderError
impl Display for RenderError
Source§impl Error for RenderError
impl Error for RenderError
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 !RefUnwindSafe for RenderError
impl !UnwindSafe for RenderError
impl Forget for RenderError
impl Freeze for RenderError
impl Move for RenderError
impl Send for RenderError
impl Sync for RenderError
impl Unpin for RenderError
impl UnsafeUnpin for RenderErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
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