pub trait RecoverableError {
// Required method
fn recovery_info(&self) -> Option<ErrorRecovery>;
// Provided methods
fn is_retryable(&self) -> bool { ... }
fn allows_partial(&self) -> bool { ... }
}Expand description
Trait for errors that support recovery
Required Methods§
Sourcefn recovery_info(&self) -> Option<ErrorRecovery>
fn recovery_info(&self) -> Option<ErrorRecovery>
Get recovery information for this error
Provided Methods§
Sourcefn is_retryable(&self) -> bool
fn is_retryable(&self) -> bool
Check if this error is retryable
Sourcefn allows_partial(&self) -> bool
fn allows_partial(&self) -> bool
Check if this error allows partial continuation