pub enum TemplateSetupError {
MissingDir(String),
Empty(String),
Io(String, String),
Parse(String, String),
}Expand description
Why a template environment could not be built at startup.
Variants§
MissingDir(String)
The directory does not exist or is not a directory.
Empty(String)
The directory exists but holds no templates, which is almost always a wrong path rather than an intentionally empty site.
Io(String, String)
A file could not be read.
Parse(String, String)
A template could not be parsed. Carries the template name and the parser’s message, which includes the line.
Trait Implementations§
Source§impl Clone for TemplateSetupError
impl Clone for TemplateSetupError
Source§fn clone(&self) -> TemplateSetupError
fn clone(&self) -> TemplateSetupError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TemplateSetupError
impl Debug for TemplateSetupError
Source§impl Display for TemplateSetupError
impl Display for TemplateSetupError
impl Eq for TemplateSetupError
Source§impl Error for TemplateSetupError
impl Error for TemplateSetupError
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 PartialEq for TemplateSetupError
impl PartialEq for TemplateSetupError
impl StructuralPartialEq for TemplateSetupError
Auto Trait Implementations§
impl Freeze for TemplateSetupError
impl RefUnwindSafe for TemplateSetupError
impl Send for TemplateSetupError
impl Sync for TemplateSetupError
impl Unpin for TemplateSetupError
impl UnsafeUnpin for TemplateSetupError
impl UnwindSafe for TemplateSetupError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.