pub enum ErrorKind {
Show 40 variants
Cancelled,
CancelTimeout,
DeadlineExceeded,
PollQuotaExhausted,
CostQuotaExhausted,
ChannelClosed,
ChannelFull,
ChannelEmpty,
ObligationLeak,
ObligationAlreadyResolved,
RegionClosed,
TaskNotOwned,
AdmissionDenied,
InvalidEncodingParams,
DataTooLarge,
EncodingFailed,
CorruptedSymbol,
InsufficientSymbols,
DecodingFailed,
ObjectMismatch,
DuplicateSymbol,
ThresholdTimeout,
RoutingFailed,
DispatchFailed,
StreamEnded,
SinkRejected,
ConnectionLost,
ConnectionRefused,
ProtocolError,
RecoveryFailed,
LeaseExpired,
LeaseRenewalFailed,
CoordinationFailed,
QuorumNotReached,
NodeUnavailable,
PartitionDetected,
Internal,
InvalidStateTransition,
ConfigError,
User,
}Expand description
The kind of error.
Variants§
Cancelled
Operation was cancelled.
CancelTimeout
Cancellation cleanup budget was exceeded.
DeadlineExceeded
Deadline exceeded.
PollQuotaExhausted
Poll quota exhausted.
CostQuotaExhausted
Cost quota exhausted.
ChannelClosed
Channel is closed/disconnected.
ChannelFull
Channel is full (would block).
ChannelEmpty
Channel is empty (would block).
ObligationLeak
Obligation was not resolved before close/completion.
ObligationAlreadyResolved
Tried to resolve an already-resolved obligation.
RegionClosed
Region is already closed.
TaskNotOwned
Task not owned by region.
AdmissionDenied
Region admission/backpressure limit reached.
InvalidEncodingParams
Invalid encoding parameters (symbol size, block count, etc.).
DataTooLarge
Source data too large for configured parameters.
EncodingFailed
Encoding operation failed.
CorruptedSymbol
Symbol data is corrupted or invalid.
InsufficientSymbols
Not enough symbols received to decode.
DecodingFailed
Decoding operation failed (matrix singular, etc.).
ObjectMismatch
Symbol does not belong to the expected object.
DuplicateSymbol
Received duplicate symbol.
ThresholdTimeout
Decoding threshold not met within timeout.
RoutingFailed
Symbol routing failed (no route to destination).
DispatchFailed
Symbol dispatch failed.
StreamEnded
Symbol stream ended unexpectedly.
SinkRejected
Symbol sink rejected the symbol.
ConnectionLost
Transport connection lost.
ConnectionRefused
Transport connection refused.
ProtocolError
Transport protocol error.
RecoveryFailed
Region recovery failed.
LeaseExpired
Lease expired during operation.
LeaseRenewalFailed
Lease renewal failed.
CoordinationFailed
Distributed coordination failed.
QuorumNotReached
Quorum not reached.
Node is unavailable.
PartitionDetected
Partition detected (split brain).
Internal
Internal runtime error (bug).
InvalidStateTransition
Invalid state transition.
ConfigError
Configuration error (invalid env var, bad config file, etc.).
User
User-provided error.
Implementations§
Source§impl ErrorKind
impl ErrorKind
Sourcepub const fn category(&self) -> ErrorCategory
pub const fn category(&self) -> ErrorCategory
Returns the error category for this kind.
Sourcepub const fn recoverability(&self) -> Recoverability
pub const fn recoverability(&self) -> Recoverability
Returns the recoverability classification for this error kind.
This helps retry logic decide whether to attempt recovery.
Sourcepub const fn is_retryable(&self) -> bool
pub const fn is_retryable(&self) -> bool
Returns true if this error is typically retryable.
Sourcepub const fn recovery_action(&self) -> RecoveryAction
pub const fn recovery_action(&self) -> RecoveryAction
Returns the recommended recovery action for this error kind.
This provides more specific guidance than recoverability()
about how to handle the error.