Struct rocket_dyn_templates::handlebars::RenderError
source · [−]pub struct RenderError {
pub desc: String,
pub template_name: Option<String>,
pub line_no: Option<usize>,
pub column_no: Option<usize>,
/* private fields */
}
Expand description
Error when rendering data on template.
Fields
desc: String
template_name: Option<String>
line_no: Option<usize>
column_no: Option<usize>
Implementations
sourceimpl RenderError
impl RenderError
pub fn new<T>(desc: T) -> RenderError where
T: AsRef<str>,
pub fn strict_error(path: Option<&String>) -> RenderError
pub fn from_error<E>(error_info: &str, cause: E) -> RenderError where
E: 'static + Error + Send + Sync,
Trait Implementations
sourceimpl Debug for RenderError
impl Debug for RenderError
sourceimpl Default for RenderError
impl Default for RenderError
sourcefn default() -> RenderError
fn default() -> RenderError
Returns the “default value” for a type. Read more
sourceimpl Display for RenderError
impl Display for RenderError
sourceimpl Error for RenderError
impl Error for RenderError
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>
🔬 This is a nightly-only experimental API. (
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
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Error> for RenderError
impl From<Error> for RenderError
sourcefn from(e: Error) -> RenderError
fn from(e: Error) -> RenderError
Converts to this type from the input type.
sourceimpl From<Error> for RenderError
impl From<Error> for RenderError
sourcefn from(e: Error) -> RenderError
fn from(e: Error) -> RenderError
Converts to this type from the input type.
sourceimpl From<FromUtf8Error> for RenderError
impl From<FromUtf8Error> for RenderError
sourcefn from(e: FromUtf8Error) -> RenderError
fn from(e: FromUtf8Error) -> RenderError
Converts to this type from the input type.
sourceimpl From<ParseIntError> for RenderError
impl From<ParseIntError> for RenderError
sourcefn from(e: ParseIntError) -> RenderError
fn from(e: ParseIntError) -> RenderError
Converts to this type from the input type.
sourceimpl From<TemplateError> for RenderError
impl From<TemplateError> for RenderError
sourcefn from(e: TemplateError) -> RenderError
fn from(e: TemplateError) -> RenderError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for RenderError
impl Send for RenderError
impl Sync for RenderError
impl Unpin for RenderError
impl !UnwindSafe for RenderError
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