pub enum OpErrorKind {
TypeMismatch,
MissingSlot,
NotRegistered,
ExecutionFailed,
RemoteFailed,
Timeout,
BadInput,
Cooldown,
Other,
}Expand description
Op invocation failure kind. a stable categorical
label consumers match on for retry / report / drop policy
decisions without parsing the freeform OpError::detail.
Variants§
TypeMismatch
Input slot value didn’t match the expected concrete type (typed downcast failed in a dispatch arm).
MissingSlot
A required slot was absent at dispatch time.
NotRegistered
The dispatched op has no registered handler.
ExecutionFailed
The op handler ran but its work failed (numeric, IO, inventory, etc.). The detail string carries specifics.
RemoteFailed
An off-thread completion handle returned an error (the
user’s Contract method’s Error type produced this via
ContractResponse::Now(Err) or CompletionHandle::fail).
Timeout
The op’s deadline elapsed before completion landed.
BadInput
Adversarial / malformed input from a peer.
Cooldown
Peer-health / backoff gate held the op (transient retry- eligible failure).
Other
Catch-all for failures that don’t fit a more specific kind.
Default for call sites that only carry a detail string.
Trait Implementations§
Source§impl Clone for OpErrorKind
impl Clone for OpErrorKind
Source§fn clone(&self) -> OpErrorKind
fn clone(&self) -> OpErrorKind
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 OpErrorKind
Source§impl Debug for OpErrorKind
impl Debug for OpErrorKind
Source§impl Default for OpErrorKind
impl Default for OpErrorKind
impl Eq for OpErrorKind
Source§impl PartialEq for OpErrorKind
impl PartialEq for OpErrorKind
Source§fn eq(&self, other: &OpErrorKind) -> bool
fn eq(&self, other: &OpErrorKind) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OpErrorKind
Auto Trait Implementations§
impl Freeze for OpErrorKind
impl RefUnwindSafe for OpErrorKind
impl Send for OpErrorKind
impl Sync for OpErrorKind
impl Unpin for OpErrorKind
impl UnsafeUnpin for OpErrorKind
impl UnwindSafe for OpErrorKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedComponent for T
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request