pub struct RetryExecutor { /* private fields */ }Expand description
Smart retry executor
Implementations§
Source§impl RetryExecutor
impl RetryExecutor
pub const fn new(config: RetryConfig) -> Self
Sourcepub async fn execute<F, Fut, T>(
&self,
operation: F,
) -> Result<T, KodeBridgeError>
pub async fn execute<F, Fut, T>( &self, operation: F, ) -> Result<T, KodeBridgeError>
Execute operation with retry logic
Sourcepub async fn execute_with_context<F, Fut, T>(
&self,
operation_name: &str,
operation: F,
) -> Result<T, KodeBridgeError>
pub async fn execute_with_context<F, Fut, T>( &self, operation_name: &str, operation: F, ) -> Result<T, KodeBridgeError>
Execute operation with context for better error reporting
Auto Trait Implementations§
impl Freeze for RetryExecutor
impl !RefUnwindSafe for RetryExecutor
impl Send for RetryExecutor
impl Sync for RetryExecutor
impl Unpin for RetryExecutor
impl UnsafeUnpin for RetryExecutor
impl !UnwindSafe for RetryExecutor
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