Enum GrpcFailureClass
enum GrpcFailureClass
The failure class for GrpcErrorsAsFailures.
Variants
-
Code(std::num::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.
Implementations
impl Debug for GrpcFailureClass
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Display for GrpcFailureClass
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
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
impl<T> Any for GrpcFailureClass
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for GrpcFailureClass
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for GrpcFailureClass
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for GrpcFailureClass
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for GrpcFailureClass
impl<T> PolicyExt for GrpcFailureClass
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 GrpcFailureClass
fn to_string(self: &Self) -> String
impl<T> ToStringFallible for GrpcFailureClass
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 GrpcFailureClass
impl<T, U> Into for GrpcFailureClass
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 GrpcFailureClass
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for GrpcFailureClass
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>