pub enum Error {
Parse(ParseError),
Write(WriteError),
Clean {
path: PathBuf,
err: Error,
},
OpenTemplateFile {
path: PathBuf,
err: Error,
},
ParseTemplate(String),
Feed(FeedError),
Io(Error),
}
Expand description
The error type for building a site. Errors can be during parsing, writing, cleaning output directories, parsing template files, and other I/O.
Variants
Parse(ParseError)
Returned for errors during parsing.
Write(WriteError)
Returned for errors writing crate::post::Post
s to disk as HTML files.
Clean
Returned for I/O problems while cleaning output directories.
OpenTemplateFile
Returned for I/O problems while opening template files.
ParseTemplate(String)
Returned for errors parsing template files.
Feed(FeedError)
Returned for errors writing the feed.
Io(Error)
Returned for other I/O errors.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourceimpl From<Error> for Error
impl From<Error> for Error
sourcefn from(err: ParseError) -> Error
fn from(err: ParseError) -> Error
Converts ParseError
s into Error
. This allows us to use the ?
operator.
sourceimpl From<Error> for Error
impl From<Error> for Error
sourcefn from(err: WriteError) -> Error
fn from(err: WriteError) -> Error
Converts WriteError
s into Error
. This allows us to use the ?
operator.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more