pub struct RecoveryConfig {
pub enabled: bool,
pub delay: Duration,
pub max_items: Option<usize>,
pub max_retries: Option<u32>,
}Expand description
Configuration for the auto-recovery service.
Fields§
§enabled: boolMaster switch.
delay: DurationDelay between drain passes (and the post-reconnect barrier). Mirrors
FusionCache’s AutoRecoveryDelay (default 2s).
max_items: Option<usize>Maximum queued items (None ⇒ unbounded).
max_retries: Option<u32>Maximum replay attempts per item (None ⇒ unbounded).
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 (const: unstable) · 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 UnsafeUnpin 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