pub enum RecoveryAction {
Retry(u32),
UseDefault,
Fallback(String),
SkipElement,
UserInput(String),
Ignore,
None,
}Expand description
负责定义可执行的恢复操作
Variants§
Retry(u32)
重试操作
UseDefault
使用默认值
Fallback(String)
降级操作
SkipElement
跳过当前元素
UserInput(String)
需要用户输入
Ignore
忽略错误
None
无法恢复
Trait Implementations§
Source§impl Clone for RecoveryAction
impl Clone for RecoveryAction
Source§fn clone(&self) -> RecoveryAction
fn clone(&self) -> RecoveryAction
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 moreAuto Trait Implementations§
impl Freeze for RecoveryAction
impl RefUnwindSafe for RecoveryAction
impl Send for RecoveryAction
impl Sync for RecoveryAction
impl Unpin for RecoveryAction
impl UnsafeUnpin for RecoveryAction
impl UnwindSafe for RecoveryAction
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