pub enum RecoveryHint {
Never,
Backoff,
RefreshRoute,
RefreshLeader,
SwitchBroker,
RefreshCredentials,
OperatorAction,
}Expand description
Catalog-owned recovery advice for a canonical error descriptor.
A recovery hint is not a retry decision and does not imply that an operation is retryable. Callers combine it with operation idempotency, stage, and remaining budget when deciding whether to retry.
Variants§
Never
Do not attempt recovery automatically.
Backoff
Retry only after applying backoff.
RefreshRoute
Refresh route information before continuing.
RefreshLeader
Refresh leader information before continuing.
SwitchBroker
Select a different broker before continuing.
RefreshCredentials
Refresh credentials before continuing.
OperatorAction
Require an operator to take corrective action.
Implementations§
Trait Implementations§
Source§impl Clone for RecoveryHint
impl Clone for RecoveryHint
impl Copy for RecoveryHint
Source§impl Debug for RecoveryHint
impl Debug for RecoveryHint
Source§impl Display for RecoveryHint
impl Display for RecoveryHint
impl Eq for RecoveryHint
Source§impl Hash for RecoveryHint
impl Hash for RecoveryHint
Source§impl Ord for RecoveryHint
impl Ord for RecoveryHint
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RecoveryHint
impl PartialEq for RecoveryHint
Source§impl PartialOrd for RecoveryHint
impl PartialOrd for RecoveryHint
impl StructuralPartialEq for RecoveryHint
Auto Trait Implementations§
impl Freeze for RecoveryHint
impl RefUnwindSafe for RecoveryHint
impl Send for RecoveryHint
impl Sync for RecoveryHint
impl Unpin for RecoveryHint
impl UnsafeUnpin for RecoveryHint
impl UnwindSafe for RecoveryHint
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