pub enum RecoverableError {
Retryable {
node: String,
attempt: usize,
max_attempts: usize,
reason: String,
},
FallbackTriggered {
from: String,
to: String,
reason: String,
},
}Expand description
可恢复错误 — 内部重试或 fallback 后继续。
Variants§
Trait Implementations§
Source§impl Debug for RecoverableError
impl Debug for RecoverableError
Source§impl Display for RecoverableError
impl Display for RecoverableError
Source§impl Error for RecoverableError
impl Error for RecoverableError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for RecoverableError
impl RefUnwindSafe for RecoverableError
impl Send for RecoverableError
impl Sync for RecoverableError
impl Unpin for RecoverableError
impl UnsafeUnpin for RecoverableError
impl UnwindSafe for RecoverableError
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