Enum GrpcFailureClass
pub enum GrpcFailureClass
The failure class for GrpcErrorsAsFailures.
Variants
-
Code(NonZeroI32) A gRPC response was classified as a failure with the corresponding status.
-
Error(String) A gRPC response was classified as an error with the corresponding error description.
Trait Implementations
impl Debug for GrpcFailureClass
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for GrpcFailureClass
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl Freeze for GrpcFailureClass
impl RefUnwindSafe for GrpcFailureClass
impl Send for GrpcFailureClass
impl Sync for GrpcFailureClass
impl Unpin for GrpcFailureClass
impl UnsafeUnpin for GrpcFailureClass
impl UnwindSafe for GrpcFailureClass
Blanket Implementations
impl<T> Any for GrpcFailureClass
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for GrpcFailureClass
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for GrpcFailureClass
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for GrpcFailureClass
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for GrpcFailureClass
impl<T> PolicyExt for GrpcFailureClass
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 GrpcFailureClass
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T> WithSubscriber for GrpcFailureClass
impl<T, U> Into<U> for GrpcFailureClass
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for GrpcFailureClass
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 GrpcFailureClass
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>