pub struct HttpError<'dispatch> { /* private fields */ }Expand description
The failure an application error handler is asked to rewrite.
Implementations§
Source§impl HttpError<'_>
impl HttpError<'_>
Sourcepub const fn source(&self) -> HttpErrorSource
pub const fn source(&self) -> HttpErrorSource
Origin of this failure.
Sourcepub const fn status(&self) -> u16
pub const fn status(&self) -> u16
Status of the response dispatch built before any handler ran.
Sourcepub const fn method(&self) -> HttpMethod
pub const fn method(&self) -> HttpMethod
Request method.
Sourcepub const fn operation(&self) -> Option<&OperationDescriptor>
pub const fn operation(&self) -> Option<&OperationDescriptor>
Operation the router selected, when the failure happened after routing.
Auto Trait Implementations§
impl<'dispatch> Freeze for HttpError<'dispatch>
impl<'dispatch> RefUnwindSafe for HttpError<'dispatch>
impl<'dispatch> Send for HttpError<'dispatch>
impl<'dispatch> Sync for HttpError<'dispatch>
impl<'dispatch> Unpin for HttpError<'dispatch>
impl<'dispatch> UnsafeUnpin for HttpError<'dispatch>
impl<'dispatch> UnwindSafe for HttpError<'dispatch>
Blanket Implementations§
Source§impl<T> BackgroundExt for T
impl<T> BackgroundExt for T
fn background(self, task: BackgroundTask) -> Background<Self>
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