pub enum ErrorKind {
Show 44 variants
Cancelled,
CancelTimeout,
DeadlineExceeded,
PollQuotaExhausted,
CostQuotaExhausted,
ChannelClosed,
ChannelFull,
ChannelEmpty,
ObligationLeak,
ObligationAlreadyResolved,
RegionFinalized,
RegionClosed,
TaskNotOwned,
AdmissionDenied,
InvalidEncodingParams,
DataTooLarge,
EncodingFailed,
CorruptedSymbol,
InsufficientSymbols,
DecodingFailed,
ObjectMismatch,
DuplicateSymbol,
ThresholdTimeout,
RoutingFailed,
DispatchFailed,
StreamEnded,
SinkRejected,
ConnectionLost,
ConnectionRefused,
ProtocolError,
RateLimited,
InvalidInput,
OperationFailed,
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.
RegionFinalized
Tried to resolve an obligation after its region was finalized.
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.
RateLimited
Request rate limited by the remote endpoint.
InvalidInput
Invalid input provided to operation.
OperationFailed
Operation failed to complete successfully.
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.
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more