pub struct RetryHandler { /* private fields */ }Expand description
Retry handler for operations with exponential backoff
Implementations§
Source§impl RetryHandler
impl RetryHandler
Sourcepub fn with_config(config: BackoffConfig) -> Self
pub fn with_config(config: BackoffConfig) -> Self
Creates a new retry handler with custom configuration
Sourcepub async fn execute_with_retry<F, T>(
&self,
operation_name: &str,
operation: F,
) -> Result<T>
pub async fn execute_with_retry<F, T>( &self, operation_name: &str, operation: F, ) -> Result<T>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RetryHandler
impl RefUnwindSafe for RetryHandler
impl Send for RetryHandler
impl Sync for RetryHandler
impl Unpin for RetryHandler
impl UnwindSafe for RetryHandler
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