pub enum HttpErrorSource {
Routing,
Request,
Rejection,
Domain,
Internal,
}Expand description
Where a failure response produced by dispatch came from.
Variants§
Routing
No route matched the request method and path.
Request
Dispatch rejected the request before the operation ran.
Rejection
Argument extraction or model validation rejected the request.
Domain
A typed #[api_error] variant declared by the operation contract.
Internal
A server-side failure, including a security scheme no registered layer can verify.
Trait Implementations§
Source§impl Clone for HttpErrorSource
impl Clone for HttpErrorSource
Source§fn clone(&self) -> HttpErrorSource
fn clone(&self) -> HttpErrorSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HttpErrorSource
Source§impl Debug for HttpErrorSource
impl Debug for HttpErrorSource
impl Eq for HttpErrorSource
Source§impl PartialEq for HttpErrorSource
impl PartialEq for HttpErrorSource
impl StructuralPartialEq for HttpErrorSource
Auto Trait Implementations§
impl Freeze for HttpErrorSource
impl RefUnwindSafe for HttpErrorSource
impl Send for HttpErrorSource
impl Sync for HttpErrorSource
impl Unpin for HttpErrorSource
impl UnsafeUnpin for HttpErrorSource
impl UnwindSafe for HttpErrorSource
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