pub struct AutoRecoveryManager { /* private fields */ }Expand description
Auto-recovery manager for handling error recovery strategies
Implementations§
Source§impl AutoRecoveryManager
impl AutoRecoveryManager
pub fn new(config: RetryConfig) -> Self
Sourcepub fn attempt_recovery<F, T>(
&mut self,
error: &DataProfilerError,
retry_fn: F,
) -> Result<T, DataProfilerError>
pub fn attempt_recovery<F, T>( &mut self, error: &DataProfilerError, retry_fn: F, ) -> Result<T, DataProfilerError>
Attempt auto-recovery for a given error
Sourcepub fn get_recovery_log(&self) -> &[RecoveryAttempt]
pub fn get_recovery_log(&self) -> &[RecoveryAttempt]
Get the recovery log
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AutoRecoveryManager
impl RefUnwindSafe for AutoRecoveryManager
impl Send for AutoRecoveryManager
impl Sync for AutoRecoveryManager
impl Unpin for AutoRecoveryManager
impl UnsafeUnpin for AutoRecoveryManager
impl UnwindSafe for AutoRecoveryManager
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