pub enum ProtocolFailureKind {
Show 15 variants
MissingPublicErrorDetails,
OversizedPublicErrorDetails,
MalformedPublicErrorDetails,
UnknownPublicErrorKind,
InvalidPublicErrorDetails,
StatusCodeMismatch,
StatusMessageMismatch,
InvalidDetailsFreeStatus,
InvalidOutboundMessage,
InvalidInboundMessage,
MissingApplicationErrorDetails,
OversizedApplicationErrorDetails,
InvalidApplicationErrorDetails,
ApplicationStatusCodeMismatch,
ApplicationStatusMessageMismatch,
}Expand description
The closed reason an untrusted gRPC failure was rejected.
Variants§
MissingPublicErrorDetails
A status that requires PublicError detail carried none.
OversizedPublicErrorDetails
Structured detail exceeded the exact 16 KiB ceiling.
MalformedPublicErrorDetails
Structured detail was not valid Protobuf.
UnknownPublicErrorKind
Structured detail named an unknown public-error kind.
InvalidPublicErrorDetails
Structured detail violated its closed field/detail invariants.
StatusCodeMismatch
The gRPC code disagreed with the checked public error class.
StatusMessageMismatch
grpc-message disagreed with the checked registry-owned safe message.
InvalidDetailsFreeStatus
A details-free closed status carried an unrecognized code/message pair.
InvalidOutboundMessage
A request built by the caller failed public structural validation.
InvalidInboundMessage
A successful response or stream item failed public structural validation.
MissingApplicationErrorDetails
An application RPC carried no application error details.
OversizedApplicationErrorDetails
Application error details exceeded their exact ceiling.
InvalidApplicationErrorDetails
Application error details were malformed or noncanonical.
ApplicationStatusCodeMismatch
The application status code disagreed with its checked semantic code.
ApplicationStatusMessageMismatch
The application status message disagreed with its registry-owned message.
Trait Implementations§
Source§impl Clone for ProtocolFailureKind
impl Clone for ProtocolFailureKind
Source§fn clone(&self) -> ProtocolFailureKind
fn clone(&self) -> ProtocolFailureKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ProtocolFailureKind
Source§impl Debug for ProtocolFailureKind
impl Debug for ProtocolFailureKind
impl Eq for ProtocolFailureKind
Source§impl PartialEq for ProtocolFailureKind
impl PartialEq for ProtocolFailureKind
Source§fn eq(&self, other: &ProtocolFailureKind) -> bool
fn eq(&self, other: &ProtocolFailureKind) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProtocolFailureKind
Auto Trait Implementations§
impl Freeze for ProtocolFailureKind
impl RefUnwindSafe for ProtocolFailureKind
impl Send for ProtocolFailureKind
impl Sync for ProtocolFailureKind
impl Unpin for ProtocolFailureKind
impl UnsafeUnpin for ProtocolFailureKind
impl UnwindSafe for ProtocolFailureKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].