pub enum HealthError {
CheckFailed {
name: String,
reason: String,
},
Timeout {
name: String,
timeout: Duration,
},
Unhealthy {
name: String,
details: String,
},
ExceededThreshold {
failures: u32,
threshold: u32,
},
}Expand description
健康检查错误
Variants§
Trait Implementations§
Source§impl Debug for HealthError
impl Debug for HealthError
Source§impl Display for HealthError
impl Display for HealthError
Source§impl Error for HealthError
impl Error for HealthError
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 HealthError
impl RefUnwindSafe for HealthError
impl Send for HealthError
impl Sync for HealthError
impl Unpin for HealthError
impl UnsafeUnpin for HealthError
impl UnwindSafe for HealthError
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