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
Source§fn default() -> OpErrorKind
fn default() -> 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 ==.