pub enum ServerErrorsFailureClass {
StatusCode(StatusCode),
Error(String),
}
Expand description
The failure class for ServerErrorsAsFailures
.
Variants
StatusCode(StatusCode)
A response was classified as a failure with the corresponding status.
Error(String)
A response was classified as an error with the corresponding error description.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ServerErrorsFailureClass
impl Send for ServerErrorsFailureClass
impl Sync for ServerErrorsFailureClass
impl Unpin for ServerErrorsFailureClass
impl UnwindSafe for ServerErrorsFailureClass
Blanket Implementations
Mutably borrows from an owned value. Read more
This is supported on crate feature
follow-redirect
only.Create a new Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more