pub struct PageError<T> {
template: T,
readable: ReadableError,
error: ServiceError,
}
Fields
template: T
readable: ReadableError
error: ServiceError
Implementations
Trait Implementations
sourceimpl<T> Error for PageError<T>where
PageError<T>: Debug + Display,
impl<T> Error for PageError<T>where
PageError<T>: Debug + Display,
1.30.0 · 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
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl<T: CtxError> ResponseError for PageError<T>
impl<T: CtxError> ResponseError for PageError<T>
sourcefn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Creates full response for error. Read more
sourcefn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more
Auto Trait Implementations
impl<T> !RefUnwindSafe for PageError<T>
impl<T> Send for PageError<T>where
T: Send,
impl<T> Sync for PageError<T>where
T: Sync,
impl<T> Unpin for PageError<T>where
T: Unpin,
impl<T> !UnwindSafe for PageError<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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