Enum ServerErrorsFailureClass
enum ServerErrorsFailureClass
The failure class for ServerErrorsAsFailures.
Variants
-
StatusCode(http::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.
Implementations
impl Debug for ServerErrorsFailureClass
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Display for ServerErrorsFailureClass
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Freeze for ServerErrorsFailureClass
impl RefUnwindSafe for ServerErrorsFailureClass
impl Send for ServerErrorsFailureClass
impl Sync for ServerErrorsFailureClass
impl Unpin for ServerErrorsFailureClass
impl UnsafeUnpin for ServerErrorsFailureClass
impl UnwindSafe for ServerErrorsFailureClass
impl<T> Any for ServerErrorsFailureClass
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for ServerErrorsFailureClass
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for ServerErrorsFailureClass
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for ServerErrorsFailureClass
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for ServerErrorsFailureClass
impl<T> PolicyExt for ServerErrorsFailureClass
fn and<P, B, E>(self: Self, other: P) -> And<T, P> where T: Policy<B, E>, P: Policy<B, E>fn or<P, B, E>(self: Self, other: P) -> Or<T, P> where T: Policy<B, E>, P: Policy<B, E>
impl<T> ToString for ServerErrorsFailureClass
fn to_string(self: &Self) -> String
impl<T> ToStringFallible for ServerErrorsFailureClass
fn try_to_string(self: &Self) -> Result<String, TryReserveError>[
ToString::to_string]alloc::string::ToString::to_string, but without panic on OOM.
impl<T> WithSubscriber for ServerErrorsFailureClass
impl<T, U> Into for ServerErrorsFailureClass
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for ServerErrorsFailureClass
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for ServerErrorsFailureClass
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>