pub trait Recoverable {
// Required methods
fn is_recoverable(&self) -> bool;
fn recovery_suggestion(&self) -> Option<String>;
}Expand description
可恢复的错误 trait
Required Methods§
Sourcefn is_recoverable(&self) -> bool
fn is_recoverable(&self) -> bool
检查是否可恢复
Sourcefn recovery_suggestion(&self) -> Option<String>
fn recovery_suggestion(&self) -> Option<String>
获取恢复建议