pub struct ErrorPageHandler {
pub name: String,
}Expand description
Default error handler, shows a nice error page
Fields§
§name: StringTrait Implementations§
Source§impl HttpErrorHandler for ErrorPageHandler
impl HttpErrorHandler for ErrorPageHandler
Source§fn error(&self, req: &HttpRequest, error: &dyn HttpError) -> HttpResponse
fn error(&self, req: &HttpRequest, error: &dyn HttpError) -> HttpResponse
Constructs an
HttpResponse from given HttpErrorSource§fn plain_code(&self, code: StatusCode) -> HttpResponse
fn plain_code(&self, code: StatusCode) -> HttpResponse
Shows a plain error code page for internal errors
Auto Trait Implementations§
impl Freeze for ErrorPageHandler
impl RefUnwindSafe for ErrorPageHandler
impl Send for ErrorPageHandler
impl Sync for ErrorPageHandler
impl Unpin for ErrorPageHandler
impl UnwindSafe for ErrorPageHandler
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