pub enum ErrorKind {
Cancelled,
Recoverable,
Configuration,
Fatal,
}Expand description
Classification of an Error. Callers branch on .kind() for
retry / abort / reconfigure decisions without pattern-matching every
variant.
Variants§
Cancelled
A deliberate, caller-initiated cancellation (an interrupt-token abort of a blocking read, a dropped wait future, an SDK job abort). Not a failure: the operation stopped because it was asked to. Callers void it — no retry, no error state, no error-level logging; whatever superseded the cancelled work carries on.
Recoverable
Safe to retry or ignore — typically a transient resource shortage.
Configuration
Caller supplied something the backend cannot do. Fix the config and retry; same input will fail the same way.
Fatal
Backend is in an unrecoverable state. Abort the pipeline.
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.