Struct rocket_dyn_templates::tera::Error
source · [−]pub struct Error {
pub kind: ErrorKind,
/* private fields */
}
Expand description
The Error type
Fields
kind: ErrorKind
Kind of error
Implementations
sourceimpl Error
impl Error
sourcepub fn circular_extend(
tpl: impl ToString,
inheritance_chain: Vec<String, Global>
) -> Error
pub fn circular_extend(
tpl: impl ToString,
inheritance_chain: Vec<String, Global>
) -> Error
Creates a circular extend error
sourcepub fn missing_parent(current: impl ToString, parent: impl ToString) -> Error
pub fn missing_parent(current: impl ToString, parent: impl ToString) -> Error
Creates a missing parent error
sourcepub fn template_not_found(tpl: impl ToString) -> Error
pub fn template_not_found(tpl: impl ToString) -> Error
Creates a template not found error
sourcepub fn filter_not_found(name: impl ToString) -> Error
pub fn filter_not_found(name: impl ToString) -> Error
Creates a filter not found error
sourcepub fn test_not_found(name: impl ToString) -> Error
pub fn test_not_found(name: impl ToString) -> Error
Creates a test not found error
sourcepub fn function_not_found(name: impl ToString) -> Error
pub fn function_not_found(name: impl ToString) -> Error
Creates a function not found error
sourcepub fn chain(
value: impl ToString,
source: impl Into<Box<dyn Error + Send + Sync + 'static, Global>>
) -> Error
pub fn chain(
value: impl ToString,
source: impl Into<Box<dyn Error + Send + Sync + 'static, Global>>
) -> Error
Creates generic error with a source
sourcepub fn call_function(
name: impl ToString,
source: impl Into<Box<dyn Error + Send + Sync + 'static, Global>>
) -> Error
pub fn call_function(
name: impl ToString,
source: impl Into<Box<dyn Error + Send + Sync + 'static, Global>>
) -> Error
Creates an error wrapping a failed function call.
sourcepub fn call_filter(
name: impl ToString,
source: impl Into<Box<dyn Error + Send + Sync + 'static, Global>>
) -> Error
pub fn call_filter(
name: impl ToString,
source: impl Into<Box<dyn Error + Send + Sync + 'static, Global>>
) -> Error
Creates an error wrapping a failed filter call.
sourcepub fn call_test(
name: impl ToString,
source: impl Into<Box<dyn Error + Send + Sync + 'static, Global>>
) -> Error
pub fn call_test(
name: impl ToString,
source: impl Into<Box<dyn Error + Send + Sync + 'static, Global>>
) -> Error
Creates an error wrapping a failed test call.
sourcepub fn invalid_macro_def(name: impl ToString) -> Error
pub fn invalid_macro_def(name: impl ToString) -> Error
Creates an invalid macro definition error
sourcepub fn utf8_conversion_error(error: FromUtf8Error, context: String) -> Error
pub fn utf8_conversion_error(error: FromUtf8Error, context: String) -> Error
Creates an utf8 conversion error
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
F: FnMut(T) -> U,
A: Array<Item = U>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more