#[non_exhaustive]pub enum DocError {
Frontmatter(String),
Markdown(String),
Template(Error),
Io(Error),
Escape(String),
}Expand description
Errors that can occur while building a Markdown → HTML site.
This error type is non-exhaustive and may gain new variants in future releases.
§Variants
Frontmatter: the----delimited frontmatter block is malformed.Markdown: Markdown rendering failed.Template: Tera template loading or rendering failed.Io: an I/O error occurred (file read, write, or directory walk).Escape: a resolved output path would have written outsideoutput_dir.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Frontmatter(String)
Malformed frontmatter block.
Markdown(String)
Markdown render failure.
Template(Error)
Tera template load/render failure.
Io(Error)
I/O error from the filesystem.
Escape(String)
Output path resolved outside output_dir.
Implementations§
Trait Implementations§
Source§impl Error for DocError
impl Error for DocError
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 DocError
impl !UnwindSafe for DocError
impl Freeze for DocError
impl Send for DocError
impl Sync for DocError
impl Unpin for DocError
impl UnsafeUnpin for DocError
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