Enum tower_http::classify::GrpcFailureClass
source · [−]pub enum GrpcFailureClass {
Code(NonZeroI32),
Error(String),
}
Expand description
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
Auto Trait Implementations
impl RefUnwindSafe for GrpcFailureClass
impl Send for GrpcFailureClass
impl Sync for GrpcFailureClass
impl Unpin for GrpcFailureClass
impl UnwindSafe for GrpcFailureClass
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