pub struct RecoveryConfig {
pub strategy: RecoveryStrategy,
pub checkpoint_interval: Option<usize>,
pub max_failures: Option<usize>,
pub timeout: Option<Duration>,
}Expand description
Configuration for error recovery
Fields§
§strategy: RecoveryStrategy§checkpoint_interval: Option<usize>§max_failures: Option<usize>§timeout: Option<Duration>Implementations§
Source§impl RecoveryConfig
impl RecoveryConfig
pub fn fail_fast() -> Self
pub fn partial_results() -> Self
pub fn retry(max_retries: usize) -> Self
pub fn graceful() -> Self
pub fn with_checkpointing(self, interval: usize) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_max_failures(self, max: usize) -> Self
Trait Implementations§
Source§impl Clone for RecoveryConfig
impl Clone for RecoveryConfig
Source§fn clone(&self) -> RecoveryConfig
fn clone(&self) -> RecoveryConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecoveryConfig
impl Debug for RecoveryConfig
Auto Trait Implementations§
impl Freeze for RecoveryConfig
impl RefUnwindSafe for RecoveryConfig
impl Send for RecoveryConfig
impl Sync for RecoveryConfig
impl Unpin for RecoveryConfig
impl UnwindSafe for RecoveryConfig
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