Skip to main content

IsRetryableBusy

Trait IsRetryableBusy 

Source
pub trait IsRetryableBusy {
    // Required method
    fn is_retryable_busy(&self) -> bool;
}
Expand description

Trait letting the retry helper classify an arbitrary error type as retryable. Implemented for sqlx::Error out of the box.

Op-level wrappers that translate sqlx::ErrorEngineError before entering the retry loop implement this trait on their translated error to keep the classification at a single source of truth.

Required Methods§

Implementations on Foreign Types§

Source§

impl IsRetryableBusy for EngineError

Let the Wave-9 retry helper classify EngineError values without unwrapping — the closure passed to crate::retry::retry_serializable returns Result<_, EngineError> and we inspect the boxed transport source to decide whether to loop.

Source§

impl IsRetryableBusy for Error

Implementors§