Enum feattle::RenderError
source · [−]pub enum RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync, {
NotFound,
Template(RenderError),
Serialization(Error),
History(HistoryError<PersistError>),
Update(UpdateError<PersistError>),
Reload(PersistError),
}
Expand description
Represent what can go wrong while handling a request
Variants
NotFound
The requested page does not exist
Template(RenderError)
The template failed to render
Serialization(Error)
Failed to serialize or deserialize JSON
History(HistoryError<PersistError>)
Failed to recover history information
Update(UpdateError<PersistError>)
Failed to update value
Reload(PersistError)
Failed to reload new version
Trait Implementations
sourceimpl<PersistError> Debug for RenderError<PersistError> where
PersistError: 'static + Debug + Error + Send + Sync,
impl<PersistError> Debug for RenderError<PersistError> where
PersistError: 'static + Debug + Error + Send + Sync,
sourceimpl<PersistError> Display for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync,
impl<PersistError> Display for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync,
sourceimpl<PersistError> Error for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync,
HistoryError<PersistError>: 'static,
HistoryError<PersistError>: Error,
UpdateError<PersistError>: 'static,
UpdateError<PersistError>: Error,
RenderError<PersistError>: Debug,
RenderError<PersistError>: Display,
impl<PersistError> Error for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync,
HistoryError<PersistError>: 'static,
HistoryError<PersistError>: Error,
UpdateError<PersistError>: 'static,
UpdateError<PersistError>: Error,
RenderError<PersistError>: Debug,
RenderError<PersistError>: Display,
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<PersistError> From<Error> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync,
impl<PersistError> From<Error> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync,
sourcefn from(source: Error) -> RenderError<PersistError>
fn from(source: Error) -> RenderError<PersistError>
Performs the conversion.
sourceimpl<PersistError> From<HistoryError<PersistError>> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync,
impl<PersistError> From<HistoryError<PersistError>> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync,
sourcefn from(source: HistoryError<PersistError>) -> RenderError<PersistError>
fn from(source: HistoryError<PersistError>) -> RenderError<PersistError>
Performs the conversion.
sourceimpl<PersistError> From<PageError> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync,
impl<PersistError> From<PageError> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync,
sourcefn from(error: PageError) -> RenderError<PersistError>
fn from(error: PageError) -> RenderError<PersistError>
Performs the conversion.
sourceimpl<PersistError> From<RenderError> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync,
impl<PersistError> From<RenderError> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync,
sourcefn from(source: RenderError) -> RenderError<PersistError>
fn from(source: RenderError) -> RenderError<PersistError>
Performs the conversion.
sourceimpl<PersistError> From<UpdateError<PersistError>> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync,
impl<PersistError> From<UpdateError<PersistError>> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync,
sourcefn from(source: UpdateError<PersistError>) -> RenderError<PersistError>
fn from(source: UpdateError<PersistError>) -> RenderError<PersistError>
Performs the conversion.
Auto Trait Implementations
impl<PersistError> !RefUnwindSafe for RenderError<PersistError>
impl<PersistError> Send for RenderError<PersistError>
impl<PersistError> Sync for RenderError<PersistError>
impl<PersistError> Unpin for RenderError<PersistError> where
PersistError: Unpin,
impl<PersistError> !UnwindSafe for RenderError<PersistError>
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