Enum ServerErrorsFailureClass

pub enum ServerErrorsFailureClass

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

impl Debug for ServerErrorsFailureClass

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Display for ServerErrorsFailureClass

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

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

Blanket Implementations

impl<T> Any for ServerErrorsFailureClass where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for ServerErrorsFailureClass where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for ServerErrorsFailureClass where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for ServerErrorsFailureClass

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for ServerErrorsFailureClass

impl<T> PolicyExt for ServerErrorsFailureClass where T: ?Sized,

fn and<P, B, E>(self, other: P) -> And<T, P>
where
    T: Sized + Policy<B, E>,
    P: Policy<B, E>,
fn or<P, B, E>(self, other: P) -> Or<T, P>
where
    T: Sized + Policy<B, E>,
    P: Policy<B, E>,

impl<T> ToString for ServerErrorsFailureClass where T: Display + ?Sized,

fn to_string(&self) -> String

impl<T> WithSubscriber for ServerErrorsFailureClass

impl<T, U> Into<U> for ServerErrorsFailureClass where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for ServerErrorsFailureClass where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for ServerErrorsFailureClass where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>