pub enum RecoveryStrategy {
RetryWithBackoff,
ValidateAndRetry,
Reauthenticate,
RequestPermission,
ManualIntervention,
RetryWithDelay,
}Expand description
恢复策略
Variants§
RetryWithBackoff
重试并使用指数退避
ValidateAndRetry
验证后重试
Reauthenticate
重新认证
RequestPermission
请求权限
ManualIntervention
手动干预
RetryWithDelay
延迟重试
Trait Implementations§
Source§impl Clone for RecoveryStrategy
impl Clone for RecoveryStrategy
Source§fn clone(&self) -> RecoveryStrategy
fn clone(&self) -> RecoveryStrategy
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 RecoveryStrategy
impl RefUnwindSafe for RecoveryStrategy
impl Send for RecoveryStrategy
impl Sync for RecoveryStrategy
impl Unpin for RecoveryStrategy
impl UnsafeUnpin for RecoveryStrategy
impl UnwindSafe for RecoveryStrategy
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