pub enum Error {
ConfigError(String),
IoError(String),
ParseError(String),
PathError(String),
RenderingError(String),
SyncingError(String),
TemplatingError(String),
}Expand description
Error definitions to use across the library.
Variants§
ConfigError(String)
Errors that occur when a config is deemed as invalid.
IoError(String)
Errors that occur during I/O operations.
ParseError(String)
Errors that occur while parsing of structures fails.
PathError(String)
Errors that occur while manipulating paths.
RenderingError(String)
Errors that occur while rendering templates.
SyncingError(String)
Errors that occur during syncing.
TemplatingError(String)
Errors that occur while registering templates
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Source§impl From<PatternError> for Error
impl From<PatternError> for Error
Source§fn from(err: PatternError) -> Self
fn from(err: PatternError) -> Self
Converts to this type from the input type.
Source§impl From<RenderError> for Error
impl From<RenderError> for Error
Source§fn from(err: RenderError) -> Self
fn from(err: RenderError) -> Self
Converts to this type from the input type.
Source§impl From<StripPrefixError> for Error
impl From<StripPrefixError> for Error
Source§fn from(err: StripPrefixError) -> Self
fn from(err: StripPrefixError) -> Self
Converts to this type from the input type.
Source§impl From<TemplateError> for Error
impl From<TemplateError> for Error
Source§fn from(err: TemplateError) -> Self
fn from(err: TemplateError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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