Enum feattle::RenderError [−][src]
pub enum RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync, { NotFound, Template(RenderError), Serialization(Error), History(HistoryError<PersistError>), Update(UpdateError<PersistError>), Reload(PersistError), }
Represent what can go wrong while handling a request
Variants
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
Failed to reload new version
Trait Implementations
impl<PersistError> Debug for RenderError<PersistError> where
PersistError: 'static + Debug + Error + Send + Sync, [src]
impl<PersistError> Debug for RenderError<PersistError> where
PersistError: 'static + Debug + Error + Send + Sync, [src]impl<PersistError> Display for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync, [src]
impl<PersistError> Display for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync, [src]impl<PersistError> Error for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync, [src]
impl<PersistError> Error for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync, [src]pub fn source(&self) -> Option<&(dyn Error + 'static)>[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>[src]
fn backtrace(&self) -> Option<&Backtrace>[src]🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str1.0.0[src]
fn description(&self) -> &str1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl<PersistError> From<Error> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync, [src]
impl<PersistError> From<Error> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync, [src]pub fn from(source: Error) -> RenderError<PersistError>[src]
pub fn from(source: Error) -> RenderError<PersistError>[src]Performs the conversion.
impl<PersistError> From<HistoryError<PersistError>> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync, [src]
impl<PersistError> From<HistoryError<PersistError>> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync, [src]pub fn from(source: HistoryError<PersistError>) -> RenderError<PersistError>[src]
pub fn from(source: HistoryError<PersistError>) -> RenderError<PersistError>[src]Performs the conversion.
impl<PersistError> From<PageError> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync, [src]
impl<PersistError> From<PageError> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync, [src]pub fn from(error: PageError) -> RenderError<PersistError>[src]
pub fn from(error: PageError) -> RenderError<PersistError>[src]Performs the conversion.
impl<PersistError> From<RenderError> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync, [src]
impl<PersistError> From<RenderError> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync, [src]pub fn from(source: RenderError) -> RenderError<PersistError>[src]
pub fn from(source: RenderError) -> RenderError<PersistError>[src]Performs the conversion.
impl<PersistError> From<UpdateError<PersistError>> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync, [src]
impl<PersistError> From<UpdateError<PersistError>> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync, [src]pub fn from(source: UpdateError<PersistError>) -> RenderError<PersistError>[src]
pub fn from(source: UpdateError<PersistError>) -> RenderError<PersistError>[src]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,
PersistError: Unpin,
impl<PersistError> !UnwindSafe for RenderError<PersistError>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more