pub enum ErrorRecoveryStrategy {
RetryWithBackoff {
max_attempts: usize,
base_delay_ms: u64,
},
FallbackMethod,
SkipEncryption,
ManualIntervention,
FailFast,
}Expand description
Error recovery strategies for handling encryption failures
Variants§
RetryWithBackoff
Retry with exponential backoff
Fields
FallbackMethod
Use fallback encryption method (e.g., different algorithm)
SkipEncryption
Skip encryption for this operation (data stored unencrypted)
ManualIntervention
Request user intervention to resolve the error
FailFast
Fail fast and return error immediately (no retry)
Trait Implementations§
Source§impl Clone for ErrorRecoveryStrategy
impl Clone for ErrorRecoveryStrategy
Source§fn clone(&self) -> ErrorRecoveryStrategy
fn clone(&self) -> ErrorRecoveryStrategy
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 moreAuto Trait Implementations§
impl Freeze for ErrorRecoveryStrategy
impl RefUnwindSafe for ErrorRecoveryStrategy
impl Send for ErrorRecoveryStrategy
impl Sync for ErrorRecoveryStrategy
impl Unpin for ErrorRecoveryStrategy
impl UnwindSafe for ErrorRecoveryStrategy
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