pub enum ErrorKind {
NotFound,
Redirect {
location: String,
status: StatusCode,
},
Http {
status: StatusCode,
message: String,
},
Validation(BTreeMap<String, String>),
DynamicUsage(&'static str),
Internal(Box<dyn Error + Send + Sync>),
}Variants§
NotFound
Render the nearest not-found.rs (404).
Redirect
Redirect to location.
Http
An HTTP error with a public message.
Validation(BTreeMap<String, String>)
Field validation failed (form handling, server actions).
DynamicUsage(&'static str)
A request-bound API was used while rendering a static page.
Internal(Box<dyn Error + Send + Sync>)
Unexpected failure. The message is only shown in development.
Auto Trait Implementations§
impl !RefUnwindSafe for ErrorKind
impl !UnwindSafe for ErrorKind
impl Forget for ErrorKind
impl Freeze for ErrorKind
impl Move for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
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